Documentation ¶
Index ¶
- Constants
- Variables
- func AddCharModel(baseid, newid int, dffname, txdname string) int
- func AddMenuItem(menuid, column int, menutext string) int
- func AddPlayerClass(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, ...) int
- func AddPlayerClassEx(teamid, modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, ...) int
- func AddSimpleModel(virtualworld, baseid, newid int, dffname, txdname string) int
- func AddSimpleModelTimed(virtualworld, baseid, newid int, dffname, txdname string, timeon, timeoff int) int
- func AddStaticPickup(model, type_ int, x, y, z float32, virtualworld int) int
- func AddStaticVehicle(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, color1, color2 int) int
- func AddStaticVehicleEx(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, ...) int
- func AddVehicleComponent(vehicleid, componentid int) bool
- func AllowAdminTeleport(allow bool) bool
- func AllowInteriorWeapons(allow bool) bool
- func AllowPlayerTeleport(playerid int, allow bool) bool
- func ApplyActorAnimation(actorid int, animlib, animname string, fDelta float32, ...) bool
- func ApplyAnimation(playerid int, animlib, animname string, fDelta float32, ...) bool
- func Attach3DTextLabelToPlayer(id, playerid int, OffsetX, OffsetY, OffsetZ float32) bool
- func Attach3DTextLabelToVehicle(id, vehicleid int, OffsetX, OffsetY, OffsetZ float32) bool
- func AttachCameraToObject(playerid, objectid int) bool
- func AttachCameraToPlayerObject(playerid, playerobjectid int) bool
- func AttachObjectToObject(objectid, attachtoid int, ...) bool
- func AttachObjectToPlayer(objectid, playerid int, ...) bool
- func AttachObjectToVehicle(objectid, vehicleid int, ...) bool
- func AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer int, ...) bool
- func AttachPlayerObjectToVehicle(playerid, objectid, vehicleid int, ...) bool
- func AttachTrailerToVehicle(trailerid, vehicleid int) bool
- func Ban(playerid int) bool
- func BanEx(playerid int, reason string) bool
- func BlockIpAddress(ip_address string, timems int) bool
- func CancelEdit(playerid int) bool
- func CancelSelectTextDraw(playerid int) bool
- func ChangeVehicleColor(vehicleid, color1, color2 int) bool
- func ChangeVehiclePaintjob(vehicleid, paintjobid int) bool
- func ClearActorAnimations(actorid int) bool
- func ClearAnimations(playerid int, forcesync bool) bool
- func ConnectNPC(name, script string) bool
- func Create3DTextLabel(text string, color int64, x, y, z, DrawDistance float32, virtualworld int, ...) int
- func CreateActor(modelid int, x, y, z, rotation float32) int
- func CreateExplosion(x, y, z float32, type_ int, radius float32) bool
- func CreateExplosionForPlayer(playerid int, X, Y, Z float32, type_ int, Radius float32) bool
- func CreateMenu(title string, columns int, x float32, y float32, col1width float32, ...) int
- func CreateObject(modelid int, x, y, z, rX, rY, rZ, DrawDistance float32) int
- func CreatePickup(model, type_ int, x, y, z float32, virtualworld int) int
- func CreatePlayer3DTextLabel(playerid int, text string, color int64, x, y, z, DrawDistance float32, ...) int
- func CreatePlayerObject(playerid, modelid int, x, y, z, rX, rY, rZ, DrawDistance float32) int
- func CreatePlayerTextDraw(playerid int, x, y float32, text string) int
- func CreateVehicle(vehicletype int, x, y, z, rotation float32, color1, color2, respawn_delay int, ...) int
- func Delete3DTextLabel(id int) bool
- func DeletePVar(playerid int, varname string) bool
- func DeletePlayer3DTextLabel(playerid, id int) bool
- func DeleteSVar(varname string) bool
- func DestroyActor(actorid int) bool
- func DestroyMenu(menuid int) bool
- func DestroyObject(objectid int) bool
- func DestroyPickup(pickup int) bool
- func DestroyPlayerObject(playerid, objectid int) bool
- func DestroyVehicle(vehicleid int) bool
- func DetachTrailerFromVehicle(vehicleid int) bool
- func DisableInteriorEnterExits() bool
- func DisableMenu(menuid int) bool
- func DisableMenuRow(menuid, row int) bool
- func DisableNameTagLOS() bool
- func DisablePlayerCheckpoint(playerid int) bool
- func DisablePlayerRaceCheckpoint(playerid int) bool
- func DisableRemoteVehicleCollisions(playerid int, disable bool) bool
- func EditAttachedObject(playerid, index int) bool
- func EditObject(playerid, objectid int) bool
- func EditPlayerObject(playerid, objectid int) bool
- func EnablePlayerCameraTarget(playerid int, enable bool) bool
- func EnableStuntBonusForAll(enable bool) bool
- func EnableStuntBonusForPlayer(playerid int, enable bool) bool
- func EnableTirePopping(enable bool) bool
- func EnableVehicleFriendlyFire() bool
- func EnableZoneNames(enable bool) bool
- func FindModelFileNameFromCRC(crc int, model_str *string, model_str_len int) bool
- func FindTextureFileNameFromCRC(crc int, texture_str *string, texture_str_len int) bool
- func ForceClassSelection(playerid int) bool
- func GameModeExit() bool
- func GameTextForAll(text string, time, style int) bool
- func GameTextForPlayer(playerid int, text string, time, style int) bool
- func GangZoneCreate(minx, miny, maxx, maxy float32) int
- func GangZoneDestroy(zone int) bool
- func GangZoneFlashForAll(zone, flashcolor int64) bool
- func GangZoneFlashForPlayer(playerid, zone, flashcolor int64) bool
- func GangZoneHideForAll(zone int) bool
- func GangZoneHideForPlayer(playerid, zone int) bool
- func GangZoneShowForAll(zone, color int64) bool
- func GangZoneShowForPlayer(playerid, zone, color int64) bool
- func GangZoneStopFlashForAll(zone int) bool
- func GangZoneStopFlashForPlayer(playerid, zone int) bool
- func GetActorFacingAngle(actorid int, angle *float32) bool
- func GetActorHealth(actorid int, health *float32) bool
- func GetActorPoolSize() int
- func GetActorPos(actorid int, x, y, z *float32) bool
- func GetActorVirtualWorld(actorid int) int
- func GetAnimationName(index int, animlib *string, animlib_size int, animname *string, ...) bool
- func GetConsoleVarAsBool(varname string) bool
- func GetConsoleVarAsInt(varname string) int
- func GetConsoleVarAsString(varname string, buffer *string, len_ int) bool
- func GetGravity() float32
- func GetMaxPlayers() int
- func GetNetworkStats(retstr *string, size int) bool
- func GetObjectModel(objectid int) int
- func GetObjectPos(objectid int, x, y, z *float32) bool
- func GetObjectRot(objectid int, rotX, rotY, rotZ *float32) bool
- func GetPVarFloat(playerid int, varname string) float32
- func GetPVarInt(playerid int, varname string) int
- func GetPVarNameAtIndex(playerid, index int, varname *string, size int) bool
- func GetPVarString(playerid int, varname string, value *string, size int) bool
- func GetPVarType(playerid int, varname string) int
- func GetPVarsUpperIndex(playerid int) int
- func GetPlayerAmmo(playerid int) int
- func GetPlayerAnimationIndex(playerid int) int
- func GetPlayerArmour(playerid int, armour *float32) bool
- func GetPlayerCameraAspectRatio(playerid int) float32
- func GetPlayerCameraFrontVector(playerid int, x, y, z *float32) bool
- func GetPlayerCameraMode(playerid int) int
- func GetPlayerCameraPos(playerid int, x, y, z *float32) bool
- func GetPlayerCameraTargetActor(playerid int) int
- func GetPlayerCameraTargetObject(playerid int) int
- func GetPlayerCameraTargetPlayer(playerid int) int
- func GetPlayerCameraTargetVehicle(playerid int) int
- func GetPlayerCameraZoom(playerid int) float32
- func GetPlayerColor(playerid int) int
- func GetPlayerDistanceFromPoint(playerid int, x, y, z float32) float32
- func GetPlayerDrunkLevel(playerid int) int
- func GetPlayerFacingAngle(playerid int, angle *float32) bool
- func GetPlayerFightingStyle(playerid int) int
- func GetPlayerHealth(playerid int, health *float32) bool
- func GetPlayerInterior(playerid int) int
- func GetPlayerIp(playerid int, ip *string, size int) bool
- func GetPlayerKeys(playerid int, keys, updown, leftright *int) bool
- func GetPlayerLastShotVectors(playerid int, ...) bool
- func GetPlayerMenu(playerid int) int
- func GetPlayerMoney(playerid int) int
- func GetPlayerName(playerid int, name *string, size int) int
- func GetPlayerNetworkStats(playerid int, retstr *string, size int) bool
- func GetPlayerObjectModel(playerid, objectid int) int
- func GetPlayerObjectPos(playerid, objectid int, x, y, z *float32) bool
- func GetPlayerObjectRot(playerid, objectid int, rotX, rotY, rotZ *float32) bool
- func GetPlayerPing(playerid int) int
- func GetPlayerPoolSize() int
- func GetPlayerPos(playerid int, x, y, z *float32) bool
- func GetPlayerScore(playerid int) int
- func GetPlayerSkin(playerid int) int
- func GetPlayerSpecialAction(playerid int) int
- func GetPlayerState(playerid int) int
- func GetPlayerSurfingObjectID(playerid int) int
- func GetPlayerSurfingVehicleID(playerid int) int
- func GetPlayerTargetActor(playerid int) int
- func GetPlayerTargetPlayer(playerid int) int
- func GetPlayerTeam(playerid int) int
- func GetPlayerTime(playerid int, hour *int, minute *int) bool
- func GetPlayerVehicleID(playerid int) int
- func GetPlayerVehicleSeat(playerid int) int
- func GetPlayerVelocity(playerid int, x, y, z *float32) bool
- func GetPlayerVersion(playerid int, version *string, len_ int) bool
- func GetPlayerVirtualWorld(playerid int) int
- func GetPlayerWantedLevel(playerid int) int
- func GetPlayerWeapon(playerid int) int
- func GetPlayerWeaponData(playerid, slot int, weapon, ammo *int) bool
- func GetPlayerWeaponState(playerid int) int
- func GetSVarFloat(varname string) float32
- func GetSVarInt(varname string) int
- func GetSVarNameAtIndex(index int, ret_varname *string, ret_len int) bool
- func GetSVarString(varname string, string_return *string, len_ int) bool
- func GetSVarType(varname string) int
- func GetSVarsUpperIndex() int
- func GetServerTickRate() int
- func GetServerVarAsBool(varname string) bool
- func GetServerVarAsInt(varname string) int
- func GetServerVarAsString(varname string, value *string, size int) bool
- func GetTickCount() int
- func GetVehicleComponentInSlot(vehicleid, slot int) int
- func GetVehicleComponentType(component int) int
- func GetVehicleDamageStatus(vehicleid int, panels, doors, lights, tires *int) bool
- func GetVehicleDistanceFromPoint(vehicleid int, x, y, z float32) float32
- func GetVehicleHealth(vehicleid int, health *float32) bool
- func GetVehicleModel(vehicleid int) int
- func GetVehicleModelInfo(model, infotype int, X, Y, Z *float32) bool
- func GetVehicleModelName(modelid int) string
- func GetVehicleParamsCarDoors(vehicleid int, driver, passenger, backleft, backright *int) bool
- func GetVehicleParamsCarWindows(vehicleid int, driver, passenger, backleft, backright *int) bool
- func GetVehicleParamsEx(vehicleid int, engine, lights, alarm, doors, bonnet, boot, objective *int) bool
- func GetVehicleParamsSirenState(vehicleid int) int
- func GetVehiclePoolSize() int
- func GetVehiclePos(vehicleid int, x, y, z *float32) bool
- func GetVehicleRotationQuat(vehicleid int, w, x, y, z *float32) bool
- func GetVehicleTrailer(vehicleid int) int
- func GetVehicleVelocity(vehicleid int, X, Y, Z *float32) bool
- func GetVehicleVirtualWorld(vehicleid int) int
- func GetVehicleZAngle(vehicleid int, z_angle *float32) bool
- func GetWeaponName(weaponid int, name *string, size int) bool
- func GivePlayerMoney(playerid int, money int) bool
- func GivePlayerWeapon(playerid, weaponid, ammo int) bool
- func HideMenuForPlayer(menuid, playerid int) bool
- func InterpolateCameraLookAt(playerid int, FromX, FromY, FromZ, ToX, ToY, ToZ float32, time, cut int) bool
- func InterpolateCameraPos(playerid int, FromX, FromY, FromZ, ToX, ToY, ToZ float32, time, cut int) bool
- func IsActorInvulnerable(actorid int) bool
- func IsActorStreamedIn(actorid, forplayerid int) bool
- func IsObjectMoving(objectid int) bool
- func IsPlayerAdmin(playerid int) bool
- func IsPlayerAttachedObjectSlotUsed(playerid, index int) bool
- func IsPlayerConnected(playerid int) bool
- func IsPlayerInAnyVehicle(playerid int) bool
- func IsPlayerInCheckpoint(playerid int) bool
- func IsPlayerInRaceCheckpoint(playerid int) bool
- func IsPlayerInRangeOfPoint(playerid int, range_, x, y, z float32) bool
- func IsPlayerInVehicle(playerid int, vehicleid int) bool
- func IsPlayerNPC(playerid int) bool
- func IsPlayerObjectMoving(playerid, objectid int) bool
- func IsPlayerStreamedIn(playerid int, forplayerid int) bool
- func IsTrailerAttachedToVehicle(vehicleid int) bool
- func IsValidActor(actorid int) bool
- func IsValidMenu(menuid int) bool
- func IsValidObject(objectid int) bool
- func IsValidPlayerObject(playerid, objectid int) bool
- func IsValidVehicle(vehicleid int) bool
- func IsValidVehicleModel(modelid int) bool
- func IsValidVehicleModelName(model string) bool
- func IsVehicleStreamedIn(vehicleid, forplayerid int) bool
- func Kick(playerid int) bool
- func LimitGlobalChatRadius(chat_radius float32) bool
- func LimitPlayerMarkerRadius(marker_radius float32) bool
- func LinkVehicleToInterior(vehicleid, interiorid int) bool
- func ManualVehicleEngineAndLights() bool
- func MoveObject(objectid int, X, Y, Z, Speed, RotX, RotY, RotZ float32) int
- func MovePlayerObject(playerid, objectid int, x, y, z, Speed, RotX, RotY, RotZ float32) int
- func NetStats_BytesReceived(playerid int) int
- func NetStats_BytesSent(playerid int) int
- func NetStats_ConnectionStatus(playerid int) int
- func NetStats_GetConnectedTime(playerid int) int
- func NetStats_GetIpPort(playerid int, ip_port *string, ip_port_len int) bool
- func NetStats_MessagesReceived(playerid int) int
- func NetStats_MessagesRecvPerSecond(playerid int) int
- func NetStats_MessagesSent(playerid int) int
- func NetStats_PacketLossPercent(playerid int) float32
- func On(eventName string, handler interface{}) error
- func Once(eventName string, handler interface{}) error
- func PlayAudioStreamForPlayer(playerid int, url string, posX, posY, posZ, distance float32, usepos bool) bool
- func PlayCrimeReportForPlayer(playerid, suspectid, crime int) bool
- func PlayerPlaySound(playerid, soundid int, x, y, z float32) bool
- func PlayerSpectatePlayer(playerid, targetplayerid, mode int) bool
- func PlayerSpectateVehicle(playerid, targetvehicleid, mode int) bool
- func PlayerTextDrawAlignment(playerid, textid, alignment int) bool
- func PlayerTextDrawBackgroundColor(playerid, textid, color int64) bool
- func PlayerTextDrawBoxColor(playerid, textid, color int64) bool
- func PlayerTextDrawColor(playerid, textid, color int64) bool
- func PlayerTextDrawDestroy(playerid int, textid int) bool
- func PlayerTextDrawFont(playerid, textid, font int) bool
- func PlayerTextDrawHide(playerid, textid int) bool
- func PlayerTextDrawLetterSize(playerid, textid int, x, y float32) bool
- func PlayerTextDrawSetOutline(playerid, textid, size int) bool
- func PlayerTextDrawSetPreviewModel(playerid, textid, modelindex int) bool
- func PlayerTextDrawSetPreviewRot(playerid, textid int, fRotX, fRotY, fRotZ, fZoom float32) bool
- func PlayerTextDrawSetPreviewVehCol(playerid, textid, color1, color2 int) bool
- func PlayerTextDrawSetProportional(playerid, textid int, set bool) bool
- func PlayerTextDrawSetSelectable(playerid, textid int, set bool) bool
- func PlayerTextDrawSetShadow(playerid, textid, size int) bool
- func PlayerTextDrawSetString(playerid, textid int, text string) bool
- func PlayerTextDrawShow(playerid, textid int) bool
- func PlayerTextDrawTextSize(playerid, textid int, x, y float32) bool
- func PlayerTextDrawUseBox(playerid, textid int, use bool) bool
- func Print(msg string) error
- func PutPlayerInVehicle(playerid, vehicleid, seatid int) bool
- func RedirectDownload(playerid int, url string) bool
- func RemoveBuildingForPlayer(playerid, modelid int, fX, fY, fZ, fRadius float32) bool
- func RemovePlayerAttachedObject(playerid, index int) bool
- func RemovePlayerFromVehicle(playerid int) bool
- func RemovePlayerMapIcon(playerid, iconid int) bool
- func RemoveVehicleComponent(vehicleid, componentid int) bool
- func RepairVehicle(vehicleid int) bool
- func ResetPlayerMoney(playerid int) bool
- func ResetPlayerWeapons(playerid int) bool
- func SHA256_PassHash(password, salt string, ret_hash *string, ret_hash_len int) bool
- func SelectObject(playerid int) bool
- func SelectTextDraw(playerid, hovercolor int64) bool
- func SendClientMessage(playerid, color int64, message string) bool
- func SendClientMessageToAll(color int64, message string) bool
- func SendDeathMessage(killer, killee, weapon int) bool
- func SendDeathMessageToPlayer(playerid, killer, killee, weapon int) bool
- func SendPlayerMessageToAll(senderid int, message string) bool
- func SendPlayerMessageToPlayer(playerid, senderid int, message string) bool
- func SendRconCommand(command string) bool
- func SetActorFacingAngle(actorid int, angle float32) bool
- func SetActorHealth(actorid int, health float32) bool
- func SetActorInvulnerable(actorid int, invulnerable bool) bool
- func SetActorPos(actorid int, x, y, z float32) bool
- func SetActorVirtualWorld(actorid, vworld int) bool
- func SetCameraBehindPlayer(playerid int) bool
- func SetDeathDropAmount(amount int) bool
- func SetGameModeText(text string) bool
- func SetGravity(gravity float32) bool
- func SetMenuColumnHeader(menuid, column int, columnheader string) bool
- func SetNameTagDrawDistance(distance float32) bool
- func SetObjectMaterial(objectid, materialindex, modelid int, txdname, texturename string, ...) bool
- func SetObjectMaterialText(objectid int, text string, materialindex, materialsize int, fontface string, ...) bool
- func SetObjectNoCameraCol(objectid int) bool
- func SetObjectPos(objectid int, x, y, z float32) bool
- func SetObjectRot(objectid int, rotX, rotY, rotZ float32) bool
- func SetObjectsDefaultCameraCol(disable bool) bool
- func SetPVarFloat(playerid int, varname string, value float32) bool
- func SetPVarInt(playerid int, varname string, value int) bool
- func SetPVarString(playerid int, varname, value string) bool
- func SetPlayerAmmo(playerid, weaponid, ammo int) bool
- func SetPlayerArmedWeapon(playerid, weaponid int) bool
- func SetPlayerArmour(playerid int, armour float32) bool
- func SetPlayerAttachedObject(playerid, index, modelid, bone int, ...) bool
- func SetPlayerCameraLookAt(playerid int, x, y, z float32, cut int) bool
- func SetPlayerCameraPos(playerid int, x, y, z float32) bool
- func SetPlayerChatBubble(playerid int, text string, color int64, drawdistance float32, expiretime int) bool
- func SetPlayerCheckpoint(playerid int, x, y, z, size float32) bool
- func SetPlayerColor(playerid, color int64) bool
- func SetPlayerDrunkLevel(playerid, level int) bool
- func SetPlayerFacingAngle(playerid int, angle float32) bool
- func SetPlayerFightingStyle(playerid, style int) bool
- func SetPlayerHealth(playerid int, health float32) bool
- func SetPlayerInterior(playerid int, interiorid int) bool
- func SetPlayerMapIcon(playerid, iconid int, x, y, z float32, markertype, color, style int) bool
- func SetPlayerMarkerForPlayer(playerid, showplayerid, color int64) bool
- func SetPlayerName(playerid int, name string) int
- func SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid int, txdname, texturename string, ...) bool
- func SetPlayerObjectMaterialText(playerid, objectid int, text string, materialindex, materialsize int, ...) bool
- func SetPlayerObjectNoCameraCol(playerid, objectid int) bool
- func SetPlayerObjectPos(playerid, objectid int, x, y, z float32) bool
- func SetPlayerObjectRot(playerid, objectid int, rotX, rotY, rotZ float32) bool
- func SetPlayerPos(playerid int, x, y, z float32) bool
- func SetPlayerPosFindZ(playerid int, x, y, z float32) bool
- func SetPlayerRaceCheckpoint(playerid, type_ int, x, y, z, nextx, nexty, nextz, size float32) bool
- func SetPlayerScore(playerid, score int) bool
- func SetPlayerShopName(playerid int, shopname string) bool
- func SetPlayerSkillLevel(playerid int, skill, level int) bool
- func SetPlayerSkin(playerid, skinid int) bool
- func SetPlayerSpecialAction(playerid int, actionid int) bool
- func SetPlayerTeam(playerid, teamid int) bool
- func SetPlayerTime(playerid, hour, minute int) bool
- func SetPlayerVelocity(playerid int, x, y, z float32) bool
- func SetPlayerVirtualWorld(playerid int, worldid int) bool
- func SetPlayerWantedLevel(playerid, level int) bool
- func SetPlayerWeather(playerid, weather int) bool
- func SetPlayerWorldBounds(playerid int, x_max, x_min, y_max, y_min float32) bool
- func SetSVarFloat(varname string, float_value float32) bool
- func SetSVarInt(varname string, int_value int) bool
- func SetSVarString(varname, string_value string) bool
- func SetSpawnInfo(playerid, team, skin int, x, y, z, rotation float32, ...) bool
- func SetTeamCount(count int) bool
- func SetVehicleAngularVelocity(vehicleid int, X, Y, Z float32) bool
- func SetVehicleHealth(vehicleid int, health float32) bool
- func SetVehicleNumberPlate(vehicleid int, numberplate string) bool
- func SetVehicleParamsCarDoors(vehicleid, driver, passenger, backleft, backright int) bool
- func SetVehicleParamsCarWindows(vehicleid, driver, passenger, backleft, backright int) bool
- func SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective int) bool
- func SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked int) bool
- func SetVehiclePos(vehicleid int, x, y, z float32) bool
- func SetVehicleToRespawn(vehicleid int) bool
- func SetVehicleVelocity(vehicleid int, X, Y, Z float32) bool
- func SetVehicleVirtualWorld(vehicleid, worldid int) bool
- func SetVehicleZAngle(vehicleid int, z_angle float32) bool
- func SetWeather(weatherid int) bool
- func SetWorldTime(hour int) bool
- func ShowMenuForPlayer(menuid, playerid int) bool
- func ShowNameTags(show bool) bool
- func ShowPlayerDialog(playerid, dialogid, style int, caption, info, button1, button2 string) bool
- func ShowPlayerMarkers(mode int) bool
- func ShowPlayerNameTagForPlayer(playerid, showplayerid int, show bool) bool
- func SpawnPlayer(playerid int) bool
- func StartRecordingPlayerData(playerid, recordtype int, recordname string) bool
- func StopAudioStreamForPlayer(playerid int) bool
- func StopObject(objectid int) bool
- func StopPlayerObject(playerid, objectid int) bool
- func StopRecordingPlayerData(playerid int) bool
- func TextDrawAlignment(textid, alignment int) bool
- func TextDrawBackgroundColor(textid, color int64) bool
- func TextDrawBoxColor(textid, color int64) bool
- func TextDrawColor(textid, color int64) bool
- func TextDrawCreate(x, y float32, text string) int
- func TextDrawDestroy(textid int) bool
- func TextDrawFont(textid, font int) bool
- func TextDrawHideForAll(textid int) bool
- func TextDrawHideForPlayer(playerid, textid int) bool
- func TextDrawLetterSize(textid int, x, y float32) bool
- func TextDrawSetOutline(textid, size int) bool
- func TextDrawSetPreviewModel(textid int, modelindex int) bool
- func TextDrawSetPreviewRot(textid int, fRotX, fRotY, fRotZ, fZoom float32) bool
- func TextDrawSetPreviewVehCol(textid, color1, color2 int) bool
- func TextDrawSetProportional(textid int, set bool) bool
- func TextDrawSetSelectable(textid int, set bool) bool
- func TextDrawSetShadow(textid, size int) bool
- func TextDrawSetString(textid int, text string) bool
- func TextDrawShowForAll(textid int) bool
- func TextDrawShowForPlayer(playerid, textid int) bool
- func TextDrawTextSize(textid int, x, y float32) bool
- func TextDrawUseBox(textid int, use bool) bool
- func TogglePlayerClock(playerid int, toggle bool) bool
- func TogglePlayerControllable(playerid int, toggle bool) bool
- func TogglePlayerSpectating(playerid int, toggle bool) bool
- func UGMPApplyMapOffsetToCoords(city int, x, y, z float32)
- func UGMPChangePlayerPedColour(playerid, colour1, colour2, colour3, colour4 int)
- func UGMPChangeVehicleColourRGB(vehicleid, colour, red, green, blue int)
- func UGMPChangeVehiclePearlColour(vehicleid, color int64)
- func UGMPChangeVehiclePearlColourRGB(vehicleid, red, green, blue int)
- func UGMPCreateExtraWeather(weatherHandlingType, weatherType, colourFilter int) int
- func UGMPDestroyExtraWeather(extraWeatherID int) int
- func UGMPEnableRadioAutoTune(toggle bool)
- func UGMPGetNumPedModels() int
- func UGMPGetNumVehicleModels() int
- func UGMPGetNumWeaponModels() int
- func UGMPGetRadioStationName(station int, str *string, length int)
- func UGMPGetRandomPedModel() int
- func UGMPGetRandomVehicleModel() int
- func UGMPGetRandomWeaponModel() int
- func UGMPGetRandomWeaponType() int
- func UGMPGetValidPedModelAt(index int) int
- func UGMPGetValidVehicleModelAt(index int) int
- func UGMPGetValidWeaponModelAt(index int) int
- func UGMPGetValidWeaponTypeAt(index int) int
- func UGMPGetVehicleComponentTypeEx(component int) int
- func UGMPGetVehicleRadioStation(vehicleid int)
- func UGMPGetWeaponHighestParentType(weapontype int) int
- func UGMPInitialiseDiscordRichPresence(applicationID string)
- func UGMPIsRadioAutoTuneEnabled() bool
- func UGMPIsRubbishVisibleForPlayer(playerid int) bool
- func UGMPIsSASunPositionFormulaEnabled(playerid int) int
- func UGMPIsValidAnimationAndLibrary(animlib, animname string) bool
- func UGMPIsValidPedModel(modelid int) bool
- func UGMPIsValidVehicleModel(modelid int) bool
- func UGMPIsValidWeaponModel(modelid int) bool
- func UGMPIsValidWeaponType(weapontype int) bool
- func UGMPMT19937_Random(a, b int) int
- func UGMPSetAircraftHeightLimitForPlayer(playerid int, limit float32) bool
- func UGMPSetCurrentSeason(season int)
- func UGMPSetExtraWeatherParam_Flags(extraweatherid, flags int) int
- func UGMPSetExtraWeatherParam_Float(extraweatherid, hour, param int, fParam float32) int
- func UGMPSetExtraWeatherParam_Int(extraweatherid, hour, param, nParam int) int
- func UGMPSetExtraWeatherParam_RGB(extraweatherid, hour, param, red, green, blue int) int
- func UGMPSetExtraWeatherParam_RGBA(extraweatherid, hour, param int, red, green, blue, alpha float32) int
- func UGMPSetExtraWeatherParam_Windyness(extraweatherid int, windyness float32) int
- func UGMPSetPlayerFireProof(playerid int, enable bool)
- func UGMPSetPlayerKnockedOffBikeState(playerid, knockState int)
- func UGMPSetPlayerSeason(playerid, season int)
- func UGMPSetVehicleRadioStation(vehicleid, station int)
- func UGMPShutdownDiscordRichPresence()
- func UGMPToggleFluffyClouds(enable bool)
- func UGMPToggleLowClouds(enable bool)
- func UGMPToggleMoon(enable bool)
- func UGMPTogglePlayerCCTV(playerid int, enable bool)
- func UGMPTogglePlayerDarknessFilter(playerid int, enable bool, darknessAlpha int)
- func UGMPTogglePlayerFluffyClouds(playerid int, enable bool)
- func UGMPTogglePlayerFogOverlay(playerid int, enable bool)
- func UGMPTogglePlayerGrass(playerid int, enable bool)
- func UGMPTogglePlayerInfiniteSprint(playerid int, enable bool)
- func UGMPTogglePlayerInfraRed(playerid int, enable bool)
- func UGMPTogglePlayerLowClouds(playerid int, enable bool)
- func UGMPTogglePlayerMoon(playerid int, enable bool)
- func UGMPTogglePlayerNightVision(playerid int, enable bool)
- func UGMPTogglePlayerRainbow(playerid int, enable bool)
- func UGMPTogglePlayerRubbish(playerid int, enable bool)
- func UGMPTogglePlayerStars(playerid int, enable bool)
- func UGMPTogglePlayerSun(playerid int, enable bool)
- func UGMPTogglePlayerVideoCameraOverlay(playerid int, enable bool)
- func UGMPToggleRainbow(enable bool)
- func UGMPToggleSASunPositionFormula(enable bool)
- func UGMPToggleSASunPositionFormula_Pl(playerid int, enable bool)
- func UGMPToggleStars(enable bool)
- func UGMPToggleVehicleColorRGB(vehicleid, color int64, enable bool)
- func UGMPUpdateDiscordRichPresence(smallImageKey, smallImageText, largeImageKey, largeImageText, details string)
- func UnBlockIpAddress(ip_address string) bool
- func Update3DTextLabelText(id, color int64, text string) bool
- func UpdatePlayer3DTextLabelText(playerid, id, color int64, text string) bool
- func UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires int) bool
- func UsePlayerPedAnims() bool
- func VectorSize(x, y, z float32) float32
- type EventType
- type Player
- func (p *Player) GetFacingAngle() (float32, error)
- func (p *Player) GetName() string
- func (p *Player) GetPos() (float32, float32, float32, error)
- func (p *Player) NewTextDraw(x, y float32, text string) (PlayerTextDraw, error)
- func (p *Player) SendMessage(colour int, msg string) error
- func (p *Player) SetName(name string) error
- func (p *Player) SetPos(x, y, z float32) error
- func (p *Player) ShowDialog(dialogid, style int, caption, info, button1, button2 string) error
- func (p *Player) Spawn() error
- type PlayerTextDraw
- func (p *PlayerTextDraw) Destroy()
- func (p *PlayerTextDraw) Font(font int)
- func (p *PlayerTextDraw) Hide()
- func (p *PlayerTextDraw) SetAlignment(align int)
- func (p *PlayerTextDraw) SetBackgroundColor(color int)
- func (p *PlayerTextDraw) SetBoxColor(color int)
- func (p *PlayerTextDraw) SetColor(color int)
- func (p *PlayerTextDraw) SetString(text string)
- func (p *PlayerTextDraw) SetTextSize(x, y float32)
- func (p *PlayerTextDraw) Show()
- func (p *PlayerTextDraw) UseBox(use bool)
- type Vehicle
- func (v *Vehicle) Destroy() error
- func (v *Vehicle) GetParams() VehicleParams
- func (v *Vehicle) GetSpeedFloat32() float32
- func (v *Vehicle) GetSpeedFloat64() float64
- func (v *Vehicle) GetSpeedInt() int
- func (v *Vehicle) PutPlayer(p *Player, seat int) error
- func (v *Vehicle) SetParams(params VehicleParams)
- type VehicleParams
Constants ¶
const ( SpecialActionNone int = 0 SpecialActionDuck int = 1 SpecialActionUsejetpack int = 2 SpecialActionEnterVehicle int = 3 SpecialActionExitVehicle int = 4 SpecialActionDance1 int = 5 SpecialActionDance2 int = 6 SpecialActionDance3 int = 7 SpecialActionDance4 int = 8 SpecialActionHandsup int = 10 SpecialActionUsecellphone int = 11 SpecialActionSitting int = 12 SpecialActionStopusecellphone int = 13 SpecialActionDrinkBeer int = 20 SpecialActionSmokeCiggy int = 21 SpecialActionDrinkWine int = 22 SpecialActionDrinkSprunk int = 23 SpecialActionCuffed int = 24 SpecialActionCarry int = 25 SpecialActionPissing int = 68 FightStyleNormal int = 4 FightStyleBoxing int = 5 FightStyleKungfu int = 6 FightStyleKneehead int = 7 FightStyleGrabkick int = 15 FightStyleElbow int = 16 WeaponskillPistol int = 0 WeaponskillPistolSilenced int = 1 WeaponskillDesertEagle int = 2 WeaponskillShotgun int = 3 WeaponskillSawnoffShotgun int = 4 WeaponskillSpas12Shotgun int = 5 WeaponskillMicroUzi int = 6 WeaponskillMp5 int = 7 WeaponskillAk47 int = 8 WeaponskillM4 int = 9 WeaponskillSniperrifle int = 10 WeaponstateUnknown int = -1 WeaponstateNoBullets int = 0 WeaponstateLastBullet int = 1 WeaponstateMoreBullets int = 2 WeaponstateReloading int = 3 MaxPlayerAttachedObjects int = 10 PlayerVartypeNone int = 0 PlayerVartypeInt int = 1 PlayerVartypeString int = 2 PlayerVartypeFloat int = 3 MaxChatbubbleLength int = 144 MapiconLocal int = 0 MapiconGlobal int = 1 MapiconLocalCheckpoint int = 2 MapiconGlobalCheckpoint int = 3 CameraCut int = 2 CameraMove int = 1 SpectateModeNormal int = 1 SpectateModeFixed int = 2 SpectateModeSide int = 3 PlayerRecordingTypeNone int = 0 PlayerRecordingTypeDriver int = 1 PlayerRecordingTypeOnfoot int = 2 CarmodtypeSpoiler int = 0 CarmodtypeHood int = 1 CarmodtypeRoof int = 2 CarmodtypeSideskirt int = 3 CarmodtypeLamps int = 4 CarmodtypeNitro int = 5 CarmodtypeExhaust int = 6 CarmodtypeWheels int = 7 CarmodtypeStereo int = 8 CarmodtypeHydraulics int = 9 CarmodtypeFrontBumper int = 10 CarmodtypeRearBumper int = 11 CarmodtypeVentRight int = 12 CarmodtypeVentLeft int = 13 VehicleParamsUnset int = -1 VehicleParamsOff int = 0 VehicleParamsOn int = 1 VehicleModelInfoSize int = 1 VehicleModelInfoFrontseat int = 2 VehicleModelInfoRearseat int = 3 VehicleModelInfoPetrolcap int = 4 VehicleModelInfoWheelsfront int = 5 VehicleModelInfoWheelsrear int = 6 VehicleModelInfoWheelsmid int = 7 VehicleModelInfoFrontBumperZ int = 8 VehicleModelInfoRearBumperZ int = 9 MaxPlayerName int = 24 MaxClientMessage int = 144 MaxPlayers int = 1000 MaxVehicles int = 2000 MaxActors int = 1000 InvalidPlayerId int = 0xFFFF InvalidVehicleId int = 0xFFFF InvalidActorId int = 0xFFFF NoTeam int = 255 MaxObjects int = 1000 InvalidObjectId int = 0xFFFF MaxGangZones int = 1024 MaxTextDraws int = 2048 MaxPlayerTextDraws int = 256 MaxMenus int = 128 Max3dtextGlobal int = 1024 Max3dtextPlayer int = 1024 MaxPickups int = 4096 InvalidMenu int = 0xFF InvalidTextDraw int = 0xFFFF InvalidGangZone int = -1 Invalid3dtextId int = 0xFFFF ServerVartypeNone int = 0 ServerVartypeInt int = 1 ServerVartypeString int = 2 ServerVartypeFloat int = 3 TextDrawFontSpriteDraw int = 4 TextDrawFontModelPreview int = 5 DialogStyleMsgbox int = 0 DialogStyleInput int = 1 DialogStyleList int = 2 DialogStylePassword int = 3 DialogStyleTablist int = 4 DialogStyleTablistHeaders int = 5 PlayerStateNone int = 0 PlayerStateOnfoot int = 1 PlayerStateDriver int = 2 PlayerStatePassenger int = 3 PlayerStateExitVehicle int = 4 PlayerStateEnterVehicleDriver int = 5 PlayerStateEnterVehiclePassenger int = 6 PlayerStateWasted int = 7 PlayerStateSpawned int = 8 PlayerStateSpectating int = 9 PlayerMarkersModeOff int = 0 PlayerMarkersModeGlobal int = 1 PlayerMarkersModeStreamed int = 2 WeaponFist int = 0 WeaponBrassknuckle int = 1 WeaponGolfclub int = 2 WeaponNitestick int = 3 WeaponKnife int = 4 WeaponBat int = 5 WeaponShovel int = 6 WeaponPoolstick int = 7 WeaponKatana int = 8 WeaponChainsaw int = 9 WeaponDildo int = 10 WeaponDildo2 int = 11 WeaponVibrator int = 12 WeaponVibrator2 int = 13 WeaponFlower int = 14 WeaponCane int = 15 WeaponGrenade int = 16 WeaponTeargas int = 17 WeaponMoltov int = 18 WeaponColt45 int = 22 WeaponSilenced int = 23 WeaponDeagle int = 24 WeaponShotgun int = 25 WeaponSawedoff int = 26 WeaponShotgspa int = 27 WeaponUzi int = 28 WeaponMp5 int = 29 WeaponAk47 int = 30 WeaponM4 int = 31 WeaponTec9 int = 32 WeaponRifle int = 33 WeaponSniper int = 34 WeaponRocketlauncher int = 35 WeaponHeatseeker int = 36 WeaponFlamethrower int = 37 WeaponMinigun int = 38 WeaponSatchel int = 39 WeaponBomb int = 40 WeaponSpraycan int = 41 WeaponFireextinguisher int = 42 WeaponCamera int = 43 WeaponNightvision int = 44 WeaponInfrared int = 45 WeaponParachute int = 46 WeaponVehicle int = 49 WeaponDrown int = 53 WeaponCollision int = 54 VehicleLandstalker int = 400 VehicleBravura int = 401 VehicleBuffalo int = 402 VehicleLinerunner int = 403 VehiclePerrenial int = 404 VehicleSentinel int = 405 VehicleDumper int = 406 VehicleFiretruck int = 407 VehicleTrashmaster int = 408 VehicleStretch int = 409 VehicleManana int = 410 VehicleInfernus int = 411 VehicleVoodoo int = 412 VehiclePony int = 413 VehicleMule int = 414 VehicleCheetah int = 415 VehicleAmbulance int = 416 VehicleLeviathan int = 417 VehicleMoonbeam int = 418 VehicleEsperanto int = 419 VehicleTaxi int = 420 VehicleWashington int = 421 VehicleBobcat int = 422 VehicleMrwhoopee int = 423 VehicleBfinjection int = 424 VehicleHunter int = 425 VehiclePremier int = 426 VehicleEnforcer int = 427 VehicleSecuricar int = 428 VehicleBanshee int = 429 VehiclePredator int = 430 VehicleBus int = 431 VehicleRhino int = 432 VehicleBarracks int = 433 VehicleHotknife int = 434 VehicleArticletrailer1 int = 435 VehiclePrevion int = 436 VehicleCoach int = 437 VehicleCabbie int = 438 VehicleStallion int = 439 VehicleRumpo int = 440 VehicleRcbandit int = 441 VehicleRomero int = 442 VehiclePacker int = 443 VehicleMonster int = 444 VehicleAdmiral int = 445 VehicleSqualo int = 446 VehicleSeasparrow int = 447 VehiclePizzaboy int = 448 VehicleTram int = 449 VehicleArticletrailer2 int = 450 VehicleTurismo int = 451 VehicleSpeeder int = 452 VehicleReefer int = 453 VehicleTropic int = 454 VehicleFlatbed int = 455 VehicleYankee int = 456 VehicleCaddy int = 457 VehicleSolair int = 458 VehicleBerkleysrcvan int = 459 VehicleSkimmer int = 460 VehiclePcj600 int = 461 VehicleFaggio int = 462 VehicleFreeway int = 463 VehicleRcbaron int = 464 VehicleRcraider int = 465 VehicleGlendale int = 466 VehicleOceanic int = 467 VehicleSanchez int = 468 VehicleSparrow int = 469 VehiclePatriot int = 470 VehicleQuad int = 471 VehicleCoastguard int = 472 VehicleDinghy int = 473 VehicleHermes int = 474 VehicleSabre int = 475 VehicleRustler int = 476 VehicleZr350 int = 477 VehicleWalton int = 478 VehicleRegina int = 479 VehicleComet int = 480 VehicleBmx int = 481 VehicleBurrito int = 482 VehicleCamper int = 483 VehicleMarquis int = 484 VehicleBaggage int = 485 VehicleDozer int = 486 VehicleMaverick int = 487 VehicleSannewsmaverick int = 488 VehicleRancher int = 489 VehicleFbirancher int = 490 VehicleVirgo int = 491 VehicleGreenwood int = 492 VehicleJetmax int = 493 VehicleHotringracer int = 494 VehicleSandking int = 495 VehicleBlistacompact int = 496 VehiclePolicemaverick int = 497 VehicleBoxville int = 498 VehicleBenson int = 499 VehicleMesa int = 500 VehicleRcgoblin int = 501 VehicleHotringracera int = 502 VehicleHotringracerb int = 503 VehicleBloodringbanger int = 504 VehicleRancherlure int = 505 VehicleSupergt int = 506 VehicleElegant int = 507 VehicleJourney int = 508 VehicleBike int = 509 VehicleMountainbike int = 510 VehicleBeagle int = 511 VehicleCropdust int = 512 VehicleStuntplane int = 513 VehicleTanker int = 514 VehicleRoadtrain int = 515 VehicleNebula int = 516 VehicleMajestic int = 517 VehicleBuccaneer int = 518 VehicleShamal int = 519 VehicleHydra int = 520 VehicleFcr900 int = 521 VehicleNrg500 int = 522 VehicleHpv1000 int = 523 VehicleCementtruck int = 524 VehicleTowtruck int = 525 VehicleFortune int = 526 VehicleCadrona int = 527 VehicleFbitruck int = 528 VehicleWillard int = 529 VehicleForklift int = 530 VehicleTractor int = 531 VehicleCombine int = 532 VehicleFeltzer int = 533 VehicleRemington int = 534 VehicleSlamvan int = 535 VehicleBlade int = 536 VehicleFreight int = 537 VehicleBrownstreak int = 538 VehicleVortex int = 539 VehicleVincent int = 540 VehicleBullet int = 541 VehicleClover int = 542 VehicleSadler int = 543 VehicleFiretruckla int = 544 VehicleHustler int = 545 VehicleIntruder int = 546 VehiclePrimo int = 547 VehicleCargobob int = 548 VehicleTampa int = 549 VehicleSunrise int = 550 VehicleMerit int = 551 VehicleUtilityvan int = 552 VehicleNevada int = 553 VehicleYosemite int = 554 VehicleWindsor int = 555 VehicleMonstera int = 556 VehicleMonsterb int = 557 VehicleUranus int = 558 VehicleJester int = 559 VehicleSultan int = 560 VehicleStratum int = 561 VehicleElegy int = 562 VehicleRaindance int = 563 VehicleRctiger int = 564 VehicleFlash int = 565 VehicleTahoma int = 566 VehicleSavanna int = 567 VehicleBandito int = 568 VehicleFreightflattrailer int = 569 VehicleStreaktrailer int = 570 VehicleKart int = 571 VehicleMower int = 572 VehicleDuneride int = 573 VehicleSweeper int = 574 VehicleBroadway int = 575 VehicleTornado int = 576 VehicleAt400 int = 577 VehicleDft30 int = 578 VehicleHuntley int = 579 VehicleStafford int = 580 VehicleBf400 int = 581 VehicleNewsvan int = 582 VehicleTug int = 583 VehiclePetroltrailer int = 584 VehicleEmperor int = 585 VehicleWayfarer int = 586 VehicleEuros int = 587 VehicleHotdog int = 588 VehicleClub int = 589 VehicleFreightboxtrailer int = 590 VehicleArticletrailer3 int = 591 VehicleAndromada int = 592 VehicleDodo int = 593 VehicleRccam int = 594 VehicleLaunch int = 595 VehiclePolicecarlspd int = 596 VehiclePolicecarsfpd int = 597 VehiclePolicecarlvpd int = 598 VehiclePoliceranger int = 599 VehiclePicador int = 600 VehicleSwat int = 601 VehicleAlpha int = 602 VehiclePhoenix int = 603 VehicleGlendaleshit int = 604 VehicleSadlershit int = 605 VehicleBaggagetrailera int = 606 VehicleBaggagetrailerb int = 607 VehicleTugstairstrailer int = 608 VehicleBoxburg int = 609 VehicleFarmtrailer int = 610 VehicleUtilitytrailer int = 611 KeyAction int = 1 KeyCrouch int = 2 KeyFire int = 4 KeySprint int = 8 KeySecondaryAttack int = 16 KeyJump int = 32 KeyLookRight int = 64 KeyHandbrake int = 128 KeyLookLeft int = 256 KeySubmission int = 512 KeyLookBehind int = 512 KeyWalk int = 1024 KeyAnalogUp int = 2048 KeyAnalogDown int = 4096 KeyAnalogLeft int = 8192 KeyAnalogRight int = 16384 KeyYes int = 65536 KeyNo int = 131072 KeyCtrlBack int = 262144 KeyUp int = -128 KeyDown int = 128 KeyLeft int = -128 KeyRight int = 128 BodyPartTorso int = 3 BodyPartGroin int = 4 BodyPartLeftArm int = 5 BodyPartRightArm int = 6 BodyPartLeftLeg int = 7 BodyPartRightLeg int = 8 BodyPartHead int = 9 ClickSourceScoreboard int = 0 EditResponseCancel int = 0 EditResponseFinal int = 1 EditResponseUpdate int = 2 SelectObjectGlobalObject int = 1 SelectObjectPlayerObject int = 2 BulletHitTypeNone int = 0 BulletHitTypePlayer int = 1 BulletHitTypeVehicle int = 2 BulletHitTypeObject int = 3 BulletHitTypePlayerObject int = 4 DownloadRequestEmpty int = 0 DownloadRequestModelFile int = 1 DownloadRequestTextureFile int = 2 ObjectMaterialSize32x32 int = 10 ObjectMaterialSize64x32 int = 20 ObjectMaterialSize64x64 int = 30 ObjectMaterialSize128x32 int = 40 ObjectMaterialSize128x64 int = 50 ObjectMaterialSize128x128 int = 60 ObjectMaterialSize256x32 int = 70 ObjectMaterialSize256x64 int = 80 ObjectMaterialSize256x128 int = 90 ObjectMaterialSize256x256 int = 100 ObjectMaterialSize512x64 int = 110 ObjectMaterialSize512x128 int = 120 ObjectMaterialSize512x256 int = 130 ObjectMaterialSize512x512 int = 140 ObjectMaterialTextAlignLeft int = 0 ObjectMaterialTextAlignCenter int = 1 ObjectMaterialTextAlignRight int = 2 )
const ( FontSanAndreas = iota FontClear FontCapitalClear FontGTA FontSprite )
const ( SeatDriver = iota SeatFront SeatBackLeft SeatBackRight )
const ( Landstalker Bravura Buffalo Linerunner Perennial Sentinel Dumper Firetruck Trashmaster Stretch Manana Infernus Voodoo Pony Mule Cheetah Ambulance Leviathan Moonbeam Esperanto Taxi Washington Bobcat MrWhoopee BFInjection Hunter Premier Enforcer Securicar Banshee Predator Bus Rhino Barracks Hotknife ArticleTrailer Previon Coach Cabbie Stallion Rumpo RCBandit Romero Packer Monster Admiral Squalo Seasparrow Pizzaboy Tram ArticleTrailer2 Turismo Speeder Reefer Tropic Flatbed Yankee Caddy Solair TopfunVanBerkleysRC Skimmer PCJ600 Faggio Freeway RCBaron RCRaider Glendale Oceanic Sanchez Sparrow Patriot Quad Coastguard Dinghy Hermes Sabre Rustler ZR350 Walton Regina Comet BMX Burrito Camper Marquis Baggage Dozer Maverick SANNewsMaverick Rancher FBIRancher Virgo Greenwood Jetmax HotringRacer Sandking BlistaCompact PoliceMaverick Boxville Benson Mesa RCGoblin HotringRacerA HotringRacerB BloodringBanger RancherLure SuperGT Elegant Journey Bike MountainBike Beagle Cropduster Stuntplane Tanker Roadtrain Nebula Majestic Buccaneer Shamal Hydra FCR900 NRG500 HPV1000 CementTruck Towtruck Fortune Cadrona FBITruck Willard Forklift Tractor CombineHarvester Feltzer Remington Slamvan Blade FreightTrain BrownstreakTrain Vortex Vincent Bullet Clover Sadler FiretruckLA Hustler Intruder Primo Cargobob Tampa Sunrise Merit UtilityVan Nevada Yosemite Windsor MonsterA MonsterB Uranus Jester Sultan Stratum Elegy Raindance RCTiger Flash Tahoma Savanna Bandito FreightFlatTrailerTrain StreakTrailerTrain Kart Mower Dune Sweeper Broadway Tornado AT400 DFT30 Huntley Stafford BF400 Newsvan Tug PetrolTrailer Emperor Wayfarer Euros Hotdog Club FreightBoxTrailerTrain ArticleTrailer3 Andromada Dodo RCCam Launch PoliceCarLSPD PoliceCarSFPD PoliceCarLVPD PoliceRanger Picador SWAT Alpha Phoenix GlendaleShit SadlerShit BaggageTrailerA BaggageTrailerB TugStairsTrailer Boxville2 FarmTrailer UtilityTrailer )
Variables ¶
var SetBackgroundColour = (*PlayerTextDraw).SetBackgroundColor
var SetBoxColour = (*PlayerTextDraw).SetBoxColor
var SetColour = (*PlayerTextDraw).SetColor
Functions ¶
func AddCharModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AddCharModel
func AddMenuItem ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AddMenuItem
func AddPlayerClass ¶
func AddPlayerClass(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo int) int
For documentation, please visit https://open.mp/docs/scripting/functions/AddPlayerClass
func AddPlayerClassEx ¶
func AddPlayerClassEx(teamid, modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo int) int
For documentation, please visit https://open.mp/docs/scripting/functions/AddPlayerClassEx
func AddSimpleModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AddSimpleModel
func AddSimpleModelTimed ¶
func AddSimpleModelTimed(virtualworld, baseid, newid int, dffname, txdname string, timeon, timeoff int) int
For documentation, please visit https://open.mp/docs/scripting/functions/AddSimpleModelTimed
func AddStaticPickup ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AddStaticPickup
func AddStaticVehicle ¶
func AddStaticVehicle(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, color1, color2 int) int
For documentation, please visit https://open.mp/docs/scripting/functions/AddStaticVehicle
func AddStaticVehicleEx ¶
func AddStaticVehicleEx(modelid int, spawn_x, spawn_y, spawn_z, z_angle float32, color1, color2, respawn_delay int, addsiren bool) int
For documentation, please visit https://open.mp/docs/scripting/functions/AddStaticVehicleEx
func AddVehicleComponent ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AddVehicleComponent
func AllowAdminTeleport ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AllowAdminTeleport
func AllowInteriorWeapons ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AllowInteriorWeapons
func AllowPlayerTeleport ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AllowPlayerTeleport
func ApplyActorAnimation ¶
func ApplyActorAnimation(actorid int, animlib, animname string, fDelta float32, loop, lockx, locky, freeze bool, time int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/ApplyActorAnimation
func ApplyAnimation ¶
func ApplyAnimation(playerid int, animlib, animname string, fDelta float32, loop, lockx, locky, freeze bool, time int, forcesync bool) bool
For documentation, please visit https://open.mp/docs/scripting/functions/ApplyAnimation
func Attach3DTextLabelToPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/Attach3DTextLabelToPlayer
func Attach3DTextLabelToVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/Attach3DTextLabelToVehicle
func AttachCameraToObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AttachCameraToObject
func AttachCameraToPlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AttachCameraToPlayerObject
func AttachObjectToObject ¶
func AttachObjectToObject(objectid, attachtoid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ float32, SyncRotation bool) bool
For documentation, please visit https://open.mp/docs/scripting/functions/AttachObjectToObject
func AttachObjectToPlayer ¶
func AttachObjectToPlayer(objectid, playerid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ float32) bool
For documentation, please visit https://open.mp/docs/scripting/functions/AttachObjectToPlayer
func AttachObjectToVehicle ¶
func AttachObjectToVehicle(objectid, vehicleid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ float32) bool
For documentation, please visit https://open.mp/docs/scripting/functions/AttachObjectToVehicle
func AttachPlayerObjectToPlayer ¶
func AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer int, OffsetX, OffsetY, OffsetZ, rX, rY, rZ float32) bool
For documentation, please visit https://open.mp/docs/scripting/functions/AttachPlayerObjectToPlayer
func AttachPlayerObjectToVehicle ¶
func AttachPlayerObjectToVehicle(playerid, objectid, vehicleid int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, RotZ float32) bool
For documentation, please visit https://open.mp/docs/scripting/functions/AttachPlayerObjectToVehicle
func AttachTrailerToVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/AttachTrailerToVehicle
func Ban ¶
For documentation, please visit https://open.mp/docs/scripting/functions/Ban
func BanEx ¶
For documentation, please visit https://open.mp/docs/scripting/functions/BanEx
func BlockIpAddress ¶
For documentation, please visit https://open.mp/docs/scripting/functions/BlockIpAddress
func CancelEdit ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CancelEdit
func CancelSelectTextDraw ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CancelSelectTextDraw
func ChangeVehicleColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ChangeVehicleColor
func ChangeVehiclePaintjob ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ChangeVehiclePaintjob
func ClearActorAnimations ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ClearActorAnimations
func ClearAnimations ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ClearAnimations
func ConnectNPC ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ConnectNPC
func Create3DTextLabel ¶
func Create3DTextLabel(text string, color int64, x, y, z, DrawDistance float32, virtualworld int, testLOS bool) int
For documentation, please visit https://open.mp/docs/scripting/functions/Create3DTextLabel
func CreateActor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreateActor
func CreateExplosion ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreateExplosion
func CreateExplosionForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreateExplosionForPlayer
func CreateMenu ¶
func CreateMenu(title string, columns int, x float32, y float32, col1width float32, col2width float32) int
For documentation, please visit https://open.mp/docs/scripting/functions/CreateMenu
func CreateObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreateObject
func CreatePickup ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreatePickup
func CreatePlayer3DTextLabel ¶
func CreatePlayer3DTextLabel(playerid int, text string, color int64, x, y, z, DrawDistance float32, attachedplayer, attachedvehicle int, testLOS bool) int
For documentation, please visit https://open.mp/docs/scripting/functions/CreatePlayer3DTextLabel
func CreatePlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreatePlayerObject
func CreatePlayerTextDraw ¶
For documentation, please visit https://open.mp/docs/scripting/functions/CreatePlayerTextDraw
func CreateVehicle ¶
func CreateVehicle(vehicletype int, x, y, z, rotation float32, color1, color2, respawn_delay int, addsiren bool) int
For documentation, please visit https://open.mp/docs/scripting/functions/CreateVehicle
func Delete3DTextLabel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/Delete3DTextLabel
func DeletePVar ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DeletePVar
func DeletePlayer3DTextLabel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DeletePlayer3DTextLabel
func DeleteSVar ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DeleteSVar
func DestroyActor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DestroyActor
func DestroyMenu ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DestroyMenu
func DestroyObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DestroyObject
func DestroyPickup ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DestroyPickup
func DestroyPlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DestroyPlayerObject
func DestroyVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DestroyVehicle
func DetachTrailerFromVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DetachTrailerFromVehicle
func DisableInteriorEnterExits ¶
func DisableInteriorEnterExits() bool
For documentation, please visit https://open.mp/docs/scripting/functions/DisableInteriorEnterExits
func DisableMenu ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DisableMenu
func DisableMenuRow ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DisableMenuRow
func DisableNameTagLOS ¶
func DisableNameTagLOS() bool
For documentation, please visit https://open.mp/docs/scripting/functions/DisableNameTagLOS
func DisablePlayerCheckpoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DisablePlayerCheckpoint
func DisablePlayerRaceCheckpoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DisablePlayerRaceCheckpoint
func DisableRemoteVehicleCollisions ¶
For documentation, please visit https://open.mp/docs/scripting/functions/DisableRemoteVehicleCollisions
func EditAttachedObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EditAttachedObject
func EditObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EditObject
func EditPlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EditPlayerObject
func EnablePlayerCameraTarget ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EnablePlayerCameraTarget
func EnableStuntBonusForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EnableStuntBonusForAll
func EnableStuntBonusForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EnableStuntBonusForPlayer
func EnableTirePopping ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EnableTirePopping
func EnableVehicleFriendlyFire ¶
func EnableVehicleFriendlyFire() bool
For documentation, please visit https://open.mp/docs/scripting/functions/EnableVehicleFriendlyFire
func EnableZoneNames ¶
For documentation, please visit https://open.mp/docs/scripting/functions/EnableZoneNames
func FindModelFileNameFromCRC ¶
For documentation, please visit https://open.mp/docs/scripting/functions/FindModelFileNameFromCRC
func FindTextureFileNameFromCRC ¶
For documentation, please visit https://open.mp/docs/scripting/functions/FindTextureFileNameFromCRC
func ForceClassSelection ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ForceClassSelection
func GameModeExit ¶
func GameModeExit() bool
For documentation, please visit https://open.mp/docs/scripting/functions/GameModeExit
func GameTextForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GameTextForAll
func GameTextForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GameTextForPlayer
func GangZoneCreate ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneCreate
func GangZoneDestroy ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneDestroy
func GangZoneFlashForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneFlashForAll
func GangZoneFlashForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneFlashForPlayer
func GangZoneHideForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneHideForAll
func GangZoneHideForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneHideForPlayer
func GangZoneShowForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneShowForAll
func GangZoneShowForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneShowForPlayer
func GangZoneStopFlashForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneStopFlashForAll
func GangZoneStopFlashForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GangZoneStopFlashForPlayer
func GetActorFacingAngle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetActorFacingAngle
func GetActorHealth ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetActorHealth
func GetActorPoolSize ¶
func GetActorPoolSize() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetActorPoolSize
func GetActorPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetActorPos
func GetActorVirtualWorld ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetActorVirtualWorld
func GetAnimationName ¶
func GetAnimationName(index int, animlib *string, animlib_size int, animname *string, animname_size int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/GetAnimationName
func GetConsoleVarAsBool ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetConsoleVarAsBool
func GetConsoleVarAsInt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetConsoleVarAsInt
func GetConsoleVarAsString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetConsoleVarAsString
func GetGravity ¶
func GetGravity() float32
For documentation, please visit https://open.mp/docs/scripting/functions/GetGravity
func GetMaxPlayers ¶
func GetMaxPlayers() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetMaxPlayers
func GetNetworkStats ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetNetworkStats
func GetObjectModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetObjectModel
func GetObjectPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetObjectPos
func GetObjectRot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetObjectRot
func GetPVarFloat ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarFloat
func GetPVarInt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarInt
func GetPVarNameAtIndex ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarNameAtIndex
func GetPVarString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarString
func GetPVarType ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarType
func GetPVarsUpperIndex ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPVarsUpperIndex
func GetPlayerAmmo ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerAmmo
func GetPlayerAnimationIndex ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerAnimationIndex
func GetPlayerArmour ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerArmour
func GetPlayerCameraAspectRatio ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraAspectRatio
func GetPlayerCameraFrontVector ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraFrontVector
func GetPlayerCameraMode ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraMode
func GetPlayerCameraPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraPos
func GetPlayerCameraTargetActor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetActor
func GetPlayerCameraTargetObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetObject
func GetPlayerCameraTargetPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetPlayer
func GetPlayerCameraTargetVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraTargetVehicle
func GetPlayerCameraZoom ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerCameraZoom
func GetPlayerColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerColor
func GetPlayerDistanceFromPoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerDistanceFromPoint
func GetPlayerDrunkLevel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerDrunkLevel
func GetPlayerFacingAngle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerFacingAngle
func GetPlayerFightingStyle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerFightingStyle
func GetPlayerHealth ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerHealth
func GetPlayerInterior ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerInterior
func GetPlayerIp ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerIp
func GetPlayerKeys ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerKeys
func GetPlayerLastShotVectors ¶
func GetPlayerLastShotVectors(playerid int, fOriginX, fOriginY, fOriginZ, fHitPosX, fHitPosY, fHitPosZ *float32) bool
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerLastShotVectors
func GetPlayerMenu ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerMenu
func GetPlayerMoney ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerMoney
func GetPlayerName ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerName
func GetPlayerNetworkStats ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerNetworkStats
func GetPlayerObjectModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerObjectModel
func GetPlayerObjectPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerObjectPos
func GetPlayerObjectRot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerObjectRot
func GetPlayerPing ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerPing
func GetPlayerPoolSize ¶
func GetPlayerPoolSize() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerPoolSize
func GetPlayerPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerPos
func GetPlayerScore ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerScore
func GetPlayerSkin ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSkin
func GetPlayerSpecialAction ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSpecialAction
func GetPlayerState ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerState
func GetPlayerSurfingObjectID ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSurfingObjectID
func GetPlayerSurfingVehicleID ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerSurfingVehicleID
func GetPlayerTargetActor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTargetActor
func GetPlayerTargetPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTargetPlayer
func GetPlayerTeam ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTeam
func GetPlayerTime ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerTime
func GetPlayerVehicleID ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVehicleID
func GetPlayerVehicleSeat ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVehicleSeat
func GetPlayerVelocity ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVelocity
func GetPlayerVersion ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVersion
func GetPlayerVirtualWorld ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerVirtualWorld
func GetPlayerWantedLevel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWantedLevel
func GetPlayerWeapon ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWeapon
func GetPlayerWeaponData ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWeaponData
func GetPlayerWeaponState ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetPlayerWeaponState
func GetSVarFloat ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarFloat
func GetSVarInt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarInt
func GetSVarNameAtIndex ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarNameAtIndex
func GetSVarString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarString
func GetSVarType ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarType
func GetSVarsUpperIndex ¶
func GetSVarsUpperIndex() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetSVarsUpperIndex
func GetServerTickRate ¶
func GetServerTickRate() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetServerTickRate
func GetServerVarAsBool ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetServerVarAsBool
func GetServerVarAsInt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetServerVarAsInt
func GetServerVarAsString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetServerVarAsString
func GetTickCount ¶
func GetTickCount() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetTickCount
func GetVehicleComponentInSlot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleComponentInSlot
func GetVehicleComponentType ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleComponentType
func GetVehicleDamageStatus ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleDamageStatus
func GetVehicleDistanceFromPoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleDistanceFromPoint
func GetVehicleHealth ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleHealth
func GetVehicleModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleModel
func GetVehicleModelInfo ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleModelInfo
func GetVehicleModelName ¶
func GetVehicleParamsCarDoors ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsCarDoors
func GetVehicleParamsCarWindows ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsCarWindows
func GetVehicleParamsEx ¶
func GetVehicleParamsEx(vehicleid int, engine, lights, alarm, doors, bonnet, boot, objective *int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsEx
func GetVehicleParamsSirenState ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleParamsSirenState
func GetVehiclePoolSize ¶
func GetVehiclePoolSize() int
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehiclePoolSize
func GetVehiclePos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehiclePos
func GetVehicleRotationQuat ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleRotationQuat
func GetVehicleTrailer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleTrailer
func GetVehicleVelocity ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleVelocity
func GetVehicleVirtualWorld ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleVirtualWorld
func GetVehicleZAngle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetVehicleZAngle
func GetWeaponName ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GetWeaponName
func GivePlayerMoney ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GivePlayerMoney
func GivePlayerWeapon ¶
For documentation, please visit https://open.mp/docs/scripting/functions/GivePlayerWeapon
func HideMenuForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/HideMenuForPlayer
func InterpolateCameraLookAt ¶
func InterpolateCameraLookAt(playerid int, FromX, FromY, FromZ, ToX, ToY, ToZ float32, time, cut int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/InterpolateCameraLookAt
func InterpolateCameraPos ¶
func InterpolateCameraPos(playerid int, FromX, FromY, FromZ, ToX, ToY, ToZ float32, time, cut int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/InterpolateCameraPos
func IsActorInvulnerable ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsActorInvulnerable
func IsActorStreamedIn ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsActorStreamedIn
func IsObjectMoving ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsObjectMoving
func IsPlayerAdmin ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerAdmin
func IsPlayerAttachedObjectSlotUsed ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerAttachedObjectSlotUsed
func IsPlayerConnected ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerConnected
func IsPlayerInAnyVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInAnyVehicle
func IsPlayerInCheckpoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInCheckpoint
func IsPlayerInRaceCheckpoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInRaceCheckpoint
func IsPlayerInRangeOfPoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInRangeOfPoint
func IsPlayerInVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerInVehicle
func IsPlayerNPC ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerNPC
func IsPlayerObjectMoving ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerObjectMoving
func IsPlayerStreamedIn ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsPlayerStreamedIn
func IsTrailerAttachedToVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsTrailerAttachedToVehicle
func IsValidActor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsValidActor
func IsValidMenu ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsValidMenu
func IsValidObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsValidObject
func IsValidPlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsValidPlayerObject
func IsValidVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsValidVehicle
func IsValidVehicleModel ¶
func IsValidVehicleModelName ¶
func IsVehicleStreamedIn ¶
For documentation, please visit https://open.mp/docs/scripting/functions/IsVehicleStreamedIn
func Kick ¶
For documentation, please visit https://open.mp/docs/scripting/functions/Kick
func LimitGlobalChatRadius ¶
For documentation, please visit https://open.mp/docs/scripting/functions/LimitGlobalChatRadius
func LimitPlayerMarkerRadius ¶
For documentation, please visit https://open.mp/docs/scripting/functions/LimitPlayerMarkerRadius
func LinkVehicleToInterior ¶
For documentation, please visit https://open.mp/docs/scripting/functions/LinkVehicleToInterior
func ManualVehicleEngineAndLights ¶
func ManualVehicleEngineAndLights() bool
For documentation, please visit https://open.mp/docs/scripting/functions/ManualVehicleEngineAndLights
func MoveObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/MoveObject
func MovePlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/MovePlayerObject
func NetStats_BytesReceived ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_BytesReceived
func NetStats_BytesSent ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_BytesSent
func NetStats_ConnectionStatus ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_ConnectionStatus
func NetStats_GetConnectedTime ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_GetConnectedTime
func NetStats_GetIpPort ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_GetIpPort
func NetStats_MessagesReceived ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_MessagesReceived
func NetStats_MessagesRecvPerSecond ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_MessagesRecvPerSecond
func NetStats_MessagesSent ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_MessagesSent
func NetStats_PacketLossPercent ¶
For documentation, please visit https://open.mp/docs/scripting/functions/NetStats_PacketLossPercent
func PlayAudioStreamForPlayer ¶
func PlayAudioStreamForPlayer(playerid int, url string, posX, posY, posZ, distance float32, usepos bool) bool
For documentation, please visit https://open.mp/docs/scripting/functions/PlayAudioStreamForPlayer
func PlayCrimeReportForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayCrimeReportForPlayer
func PlayerPlaySound ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerPlaySound
func PlayerSpectatePlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerSpectatePlayer
func PlayerSpectateVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerSpectateVehicle
func PlayerTextDrawAlignment ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawAlignment
func PlayerTextDrawBackgroundColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawBackgroundColor
func PlayerTextDrawBoxColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawBoxColor
func PlayerTextDrawColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawColor
func PlayerTextDrawDestroy ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawDestroy
func PlayerTextDrawFont ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawFont
func PlayerTextDrawHide ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawHide
func PlayerTextDrawLetterSize ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawLetterSize
func PlayerTextDrawSetOutline ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetOutline
func PlayerTextDrawSetPreviewModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewModel
func PlayerTextDrawSetPreviewRot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewRot
func PlayerTextDrawSetPreviewVehCol ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol
func PlayerTextDrawSetProportional ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetProportional
func PlayerTextDrawSetSelectable ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetSelectable
func PlayerTextDrawSetShadow ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetShadow
func PlayerTextDrawSetString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawSetString
func PlayerTextDrawShow ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawShow
func PlayerTextDrawTextSize ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawTextSize
func PlayerTextDrawUseBox ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PlayerTextDrawUseBox
func PutPlayerInVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/PutPlayerInVehicle
func RedirectDownload ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RedirectDownload
func RemoveBuildingForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RemoveBuildingForPlayer
func RemovePlayerAttachedObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RemovePlayerAttachedObject
func RemovePlayerFromVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RemovePlayerFromVehicle
func RemovePlayerMapIcon ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RemovePlayerMapIcon
func RemoveVehicleComponent ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RemoveVehicleComponent
func RepairVehicle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/RepairVehicle
func ResetPlayerMoney ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ResetPlayerMoney
func ResetPlayerWeapons ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ResetPlayerWeapons
func SHA256_PassHash ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SHA256_PassHash
func SelectObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SelectObject
func SelectTextDraw ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SelectTextDraw
func SendClientMessage ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendClientMessage
func SendClientMessageToAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendClientMessageToAll
func SendDeathMessage ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendDeathMessage
func SendDeathMessageToPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendDeathMessageToPlayer
func SendPlayerMessageToAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendPlayerMessageToAll
func SendPlayerMessageToPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendPlayerMessageToPlayer
func SendRconCommand ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SendRconCommand
func SetActorFacingAngle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetActorFacingAngle
func SetActorHealth ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetActorHealth
func SetActorInvulnerable ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetActorInvulnerable
func SetActorPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetActorPos
func SetActorVirtualWorld ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetActorVirtualWorld
func SetCameraBehindPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetCameraBehindPlayer
func SetDeathDropAmount ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetDeathDropAmount
func SetGameModeText ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetGameModeText
func SetGravity ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetGravity
func SetMenuColumnHeader ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetMenuColumnHeader
func SetNameTagDrawDistance ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetNameTagDrawDistance
func SetObjectMaterial ¶
func SetObjectMaterial(objectid, materialindex, modelid int, txdname, texturename string, materialcolor int64) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectMaterial
func SetObjectMaterialText ¶
func SetObjectMaterialText(objectid int, text string, materialindex, materialsize int, fontface string, fontsize int, bold bool, fontcolor, backcolor, textalignment int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectMaterialText
func SetObjectNoCameraCol ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectNoCameraCol
func SetObjectPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectPos
func SetObjectRot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectRot
func SetObjectsDefaultCameraCol ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetObjectsDefaultCameraCol
func SetPVarFloat ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPVarFloat
func SetPVarInt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPVarInt
func SetPVarString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPVarString
func SetPlayerAmmo ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerAmmo
func SetPlayerArmedWeapon ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerArmedWeapon
func SetPlayerArmour ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerArmour
func SetPlayerAttachedObject ¶
func SetPlayerAttachedObject(playerid, index, modelid, bone int, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ float32, materialcolor1, materialcolor2 int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerAttachedObject
func SetPlayerCameraLookAt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerCameraLookAt
func SetPlayerCameraPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerCameraPos
func SetPlayerChatBubble ¶
func SetPlayerChatBubble(playerid int, text string, color int64, drawdistance float32, expiretime int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerChatBubble
func SetPlayerCheckpoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerCheckpoint
func SetPlayerColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerColor
func SetPlayerDrunkLevel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerDrunkLevel
func SetPlayerFacingAngle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerFacingAngle
func SetPlayerFightingStyle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerFightingStyle
func SetPlayerHealth ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerHealth
func SetPlayerInterior ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerInterior
func SetPlayerMapIcon ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerMapIcon
func SetPlayerMarkerForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerMarkerForPlayer
func SetPlayerName ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerName
func SetPlayerObjectMaterial ¶
func SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid int, txdname, texturename string, materialcolor int64) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectMaterial
func SetPlayerObjectMaterialText ¶
func SetPlayerObjectMaterialText(playerid, objectid int, text string, materialindex, materialsize int, fontface string, fontsize int, bold bool, fontcolor, backcolor, textalignment int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectMaterialText
func SetPlayerObjectNoCameraCol ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectNoCameraCol
func SetPlayerObjectPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectPos
func SetPlayerObjectRot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerObjectRot
func SetPlayerPos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerPos
func SetPlayerPosFindZ ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerPosFindZ
func SetPlayerRaceCheckpoint ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerRaceCheckpoint
func SetPlayerScore ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerScore
func SetPlayerShopName ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerShopName
func SetPlayerSkillLevel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerSkillLevel
func SetPlayerSkin ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerSkin
func SetPlayerSpecialAction ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerSpecialAction
func SetPlayerTeam ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerTeam
func SetPlayerTime ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerTime
func SetPlayerVelocity ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerVelocity
func SetPlayerVirtualWorld ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerVirtualWorld
func SetPlayerWantedLevel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerWantedLevel
func SetPlayerWeather ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerWeather
func SetPlayerWorldBounds ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetPlayerWorldBounds
func SetSVarFloat ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetSVarFloat
func SetSVarInt ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetSVarInt
func SetSVarString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetSVarString
func SetSpawnInfo ¶
func SetSpawnInfo(playerid, team, skin int, x, y, z, rotation float32, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo int) bool
For documentation, please visit https://open.mp/docs/scripting/functions/SetSpawnInfo
func SetTeamCount ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetTeamCount
func SetVehicleAngularVelocity ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleAngularVelocity
func SetVehicleHealth ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleHealth
func SetVehicleNumberPlate ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleNumberPlate
func SetVehicleParamsCarDoors ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsCarDoors
func SetVehicleParamsCarWindows ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsCarWindows
func SetVehicleParamsEx ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsEx
func SetVehicleParamsForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleParamsForPlayer
func SetVehiclePos ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehiclePos
func SetVehicleToRespawn ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleToRespawn
func SetVehicleVelocity ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleVelocity
func SetVehicleVirtualWorld ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleVirtualWorld
func SetVehicleZAngle ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetVehicleZAngle
func SetWeather ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetWeather
func SetWorldTime ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SetWorldTime
func ShowMenuForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ShowMenuForPlayer
func ShowNameTags ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ShowNameTags
func ShowPlayerDialog ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ShowPlayerDialog
func ShowPlayerMarkers ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ShowPlayerMarkers
func ShowPlayerNameTagForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/ShowPlayerNameTagForPlayer
func SpawnPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/SpawnPlayer
func StartRecordingPlayerData ¶
For documentation, please visit https://open.mp/docs/scripting/functions/StartRecordingPlayerData
func StopAudioStreamForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/StopAudioStreamForPlayer
func StopObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/StopObject
func StopPlayerObject ¶
For documentation, please visit https://open.mp/docs/scripting/functions/StopPlayerObject
func StopRecordingPlayerData ¶
For documentation, please visit https://open.mp/docs/scripting/functions/StopRecordingPlayerData
func TextDrawAlignment ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawAlignment
func TextDrawBackgroundColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawBackgroundColor
func TextDrawBoxColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawBoxColor
func TextDrawColor ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawColor
func TextDrawCreate ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawCreate
func TextDrawDestroy ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawDestroy
func TextDrawFont ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawFont
func TextDrawHideForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawHideForAll
func TextDrawHideForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawHideForPlayer
func TextDrawLetterSize ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawLetterSize
func TextDrawSetOutline ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetOutline
func TextDrawSetPreviewModel ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetPreviewModel
func TextDrawSetPreviewRot ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetPreviewRot
func TextDrawSetPreviewVehCol ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetPreviewVehCol
func TextDrawSetProportional ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetProportional
func TextDrawSetSelectable ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetSelectable
func TextDrawSetShadow ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetShadow
func TextDrawSetString ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawSetString
func TextDrawShowForAll ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawShowForAll
func TextDrawShowForPlayer ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawShowForPlayer
func TextDrawTextSize ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawTextSize
func TextDrawUseBox ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TextDrawUseBox
func TogglePlayerClock ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TogglePlayerClock
func TogglePlayerControllable ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TogglePlayerControllable
func TogglePlayerSpectating ¶
For documentation, please visit https://open.mp/docs/scripting/functions/TogglePlayerSpectating
func UGMPApplyMapOffsetToCoords ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ApplyMapOffsetToCoords
func UGMPChangePlayerPedColour ¶
func UGMPChangePlayerPedColour(playerid, colour1, colour2, colour3, colour4 int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangePlayerPedColour
func UGMPChangeVehicleColourRGB ¶
func UGMPChangeVehicleColourRGB(vehicleid, colour, red, green, blue int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangeVehicleColourRGB
func UGMPChangeVehiclePearlColour ¶
func UGMPChangeVehiclePearlColour(vehicleid, color int64)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangeVehiclePearlColour
func UGMPChangeVehiclePearlColourRGB ¶
func UGMPChangeVehiclePearlColourRGB(vehicleid, red, green, blue int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ChangeVehiclePearlColourRGB
func UGMPCreateExtraWeather ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/CreateExtraWeather
func UGMPDestroyExtraWeather ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/DestroyExtraWeather
func UGMPEnableRadioAutoTune ¶
func UGMPEnableRadioAutoTune(toggle bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/EnableRadioAutoTune
func UGMPGetNumPedModels ¶
func UGMPGetNumPedModels() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetNumPedModels
func UGMPGetNumVehicleModels ¶
func UGMPGetNumVehicleModels() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetNumVehicleModels
func UGMPGetNumWeaponModels ¶
func UGMPGetNumWeaponModels() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetNumWeaponModels
func UGMPGetRadioStationName ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRadioStationName
func UGMPGetRandomPedModel ¶
func UGMPGetRandomPedModel() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRandomPedModel
func UGMPGetRandomVehicleModel ¶
func UGMPGetRandomVehicleModel() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRandomVehicleModel
func UGMPGetRandomWeaponModel ¶
func UGMPGetRandomWeaponModel() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRandomWeaponModel
func UGMPGetRandomWeaponType ¶
func UGMPGetRandomWeaponType() int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetRandomWeaponType
func UGMPGetValidPedModelAt ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidPedModelAt
func UGMPGetValidVehicleModelAt ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidVehicleModelAt
func UGMPGetValidWeaponModelAt ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidWeaponModelAt
func UGMPGetValidWeaponTypeAt ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetValidWeaponTypeAt
func UGMPGetVehicleComponentTypeEx ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetVehicleComponentTypeEx
func UGMPGetVehicleRadioStation ¶
func UGMPGetVehicleRadioStation(vehicleid int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetVehicleRadioStation
func UGMPGetWeaponHighestParentType ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/GetWeaponHighestParentType
func UGMPInitialiseDiscordRichPresence ¶
func UGMPInitialiseDiscordRichPresence(applicationID string)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/InitialiseDiscordRichPresence
func UGMPIsRadioAutoTuneEnabled ¶
func UGMPIsRadioAutoTuneEnabled() bool
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsRadioAutoTuneEnabled
func UGMPIsRubbishVisibleForPlayer ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsRubbishVisibleForPlayer
func UGMPIsSASunPositionFormulaEnabled ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsSASunPositionFormulaEnabled
func UGMPIsValidAnimationAndLibrary ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidAnimationAndLibrary
func UGMPIsValidPedModel ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidPedModel
func UGMPIsValidVehicleModel ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidVehicleModel
func UGMPIsValidWeaponModel ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidWeaponModel
func UGMPIsValidWeaponType ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/IsValidWeaponType
func UGMPMT19937_Random ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/MT19937_Random
func UGMPSetAircraftHeightLimitForPlayer ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetAircraftHeightLimitForPlayer
func UGMPSetCurrentSeason ¶
func UGMPSetCurrentSeason(season int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetCurrentSeason
func UGMPSetExtraWeatherParam_Flags ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Flags
func UGMPSetExtraWeatherParam_Float ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Float
func UGMPSetExtraWeatherParam_Int ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Int
func UGMPSetExtraWeatherParam_RGB ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_RGB
func UGMPSetExtraWeatherParam_RGBA ¶
func UGMPSetExtraWeatherParam_RGBA(extraweatherid, hour, param int, red, green, blue, alpha float32) int
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_RGBA
func UGMPSetExtraWeatherParam_Windyness ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetExtraWeatherParam_Windyness
func UGMPSetPlayerFireProof ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetPlayerFireProof
func UGMPSetPlayerKnockedOffBikeState ¶
func UGMPSetPlayerKnockedOffBikeState(playerid, knockState int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetPlayerKnockedOffBikeState
func UGMPSetPlayerSeason ¶
func UGMPSetPlayerSeason(playerid, season int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetPlayerSeason
func UGMPSetVehicleRadioStation ¶
func UGMPSetVehicleRadioStation(vehicleid, station int)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/SetVehicleRadioStation
func UGMPShutdownDiscordRichPresence ¶
func UGMPShutdownDiscordRichPresence()
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ShutdownDiscordRichPresence
func UGMPToggleFluffyClouds ¶
func UGMPToggleFluffyClouds(enable bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleFluffyClouds
func UGMPToggleLowClouds ¶
func UGMPToggleLowClouds(enable bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleLowClouds
func UGMPToggleMoon ¶
func UGMPToggleMoon(enable bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleMoon
func UGMPTogglePlayerCCTV ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerCCTV
func UGMPTogglePlayerDarknessFilter ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerDarknessFilter
func UGMPTogglePlayerFluffyClouds ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerFluffyClouds
func UGMPTogglePlayerFogOverlay ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerFogOverlay
func UGMPTogglePlayerGrass ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerGrass
func UGMPTogglePlayerInfiniteSprint ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerInfiniteSprint
func UGMPTogglePlayerInfraRed ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerInfraRed
func UGMPTogglePlayerLowClouds ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerLowClouds
func UGMPTogglePlayerMoon ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerMoon
func UGMPTogglePlayerNightVision ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerNightVision
func UGMPTogglePlayerRainbow ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerRainbow
func UGMPTogglePlayerRubbish ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerRubbish
func UGMPTogglePlayerStars ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerStars
func UGMPTogglePlayerSun ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerSun
func UGMPTogglePlayerVideoCameraOverlay ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/TogglePlayerVideoCameraOverlay
func UGMPToggleRainbow ¶
func UGMPToggleRainbow(enable bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleRainbow
func UGMPToggleSASunPositionFormula ¶
func UGMPToggleSASunPositionFormula(enable bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleSASunPositionFormula
func UGMPToggleSASunPositionFormula_Pl ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleSASunPositionFormula_Pl
func UGMPToggleStars ¶
func UGMPToggleStars(enable bool)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleStars
func UGMPToggleVehicleColorRGB ¶
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/ToggleVehicleColorRGB
func UGMPUpdateDiscordRichPresence ¶
func UGMPUpdateDiscordRichPresence(smallImageKey, smallImageText, largeImageKey, largeImageText, details string)
For documentation, please visit https://gtaundergroundmod.com/pages/ug-mp/documentation/native/UpdateDiscordRichPresence
func UnBlockIpAddress ¶
For documentation, please visit https://open.mp/docs/scripting/functions/UnBlockIpAddress
func Update3DTextLabelText ¶
For documentation, please visit https://open.mp/docs/scripting/functions/Update3DTextLabelText
func UpdatePlayer3DTextLabelText ¶
For documentation, please visit https://open.mp/docs/scripting/functions/UpdatePlayer3DTextLabelText
func UpdateVehicleDamageStatus ¶
For documentation, please visit https://open.mp/docs/scripting/functions/UpdateVehicleDamageStatus
func UsePlayerPedAnims ¶
func UsePlayerPedAnims() bool
For documentation, please visit https://open.mp/docs/scripting/functions/UsePlayerPedAnims
func VectorSize ¶
For documentation, please visit https://open.mp/docs/scripting/functions/VectorSize
Types ¶
type Player ¶
type Player struct {
ID int
}
Player implements OO players.
func (*Player) GetFacingAngle ¶
func (*Player) NewTextDraw ¶
func (p *Player) NewTextDraw(x, y float32, text string) (PlayerTextDraw, error)
func (*Player) SendMessage ¶
SendMessage allows you to send a player a message.
func (*Player) ShowDialog ¶
type PlayerTextDraw ¶
type PlayerTextDraw struct {
// contains filtered or unexported fields
}
func (*PlayerTextDraw) Destroy ¶
func (p *PlayerTextDraw) Destroy()
func (*PlayerTextDraw) Font ¶
func (p *PlayerTextDraw) Font(font int)
func (*PlayerTextDraw) Hide ¶
func (p *PlayerTextDraw) Hide()
func (*PlayerTextDraw) SetAlignment ¶
func (p *PlayerTextDraw) SetAlignment(align int)
func (*PlayerTextDraw) SetBackgroundColor ¶
func (p *PlayerTextDraw) SetBackgroundColor(color int)
func (*PlayerTextDraw) SetBoxColor ¶
func (p *PlayerTextDraw) SetBoxColor(color int)
func (*PlayerTextDraw) SetColor ¶
func (p *PlayerTextDraw) SetColor(color int)
func (*PlayerTextDraw) SetString ¶
func (p *PlayerTextDraw) SetString(text string)
func (*PlayerTextDraw) SetTextSize ¶
func (p *PlayerTextDraw) SetTextSize(x, y float32)
func (*PlayerTextDraw) Show ¶
func (p *PlayerTextDraw) Show()
func (*PlayerTextDraw) UseBox ¶
func (p *PlayerTextDraw) UseBox(use bool)
type Vehicle ¶
type Vehicle struct {
ID int
}
func NewVehicle ¶
func (*Vehicle) GetParams ¶
func (v *Vehicle) GetParams() VehicleParams
func (*Vehicle) GetSpeedFloat32 ¶
func (*Vehicle) GetSpeedFloat64 ¶
func (*Vehicle) GetSpeedInt ¶
func (*Vehicle) SetParams ¶
func (v *Vehicle) SetParams(params VehicleParams)