MTA/Client Scripting Functions

Материал из Wikipedia Pi

Client Scripting Functions

Jump to navigationJump to search Contributors: Did you create a page but it's not on this list? Confused? Read: Adding Pages to Categories and Templates This page lists all the client-side scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function, create an issue in our GitHub repository.
For more functions, check the useful functions page.

Audio functions

  • getRadioChannel
  • getRadioChannelName
  • getSFXStatus
  • getSoundBPM
  • getSoundBufferLength
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20914)
  • getSoundEffectParameters
  • getSoundEffects
  • getSoundFFTData
  • getSoundLength
  • getSoundLevelData
  • getSoundMaxDistance
  • getSoundMetaTags
  • getSoundMinDistance
  • getSoundPan
  • getSoundPosition
  • getSoundProperties
  • getSoundSpeed
  • getSoundVolume
  • getSoundWaveData
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20785)
  • isSoundLooped
  • isSoundPanningEnabled
  • isSoundPaused
  • playSFX3D
  • playSFX
  • playSound3D
  • playSound
  • playSoundFrontEnd
  • setRadioChannel
  • setSoundEffectEnabled
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20914)
  • setSoundEffectParameter
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20785)
  • setSoundLooped
  • setSoundMaxDistance
  • setSoundMinDistance
  • setSoundPan
  • setSoundPanningEnabled
  • setSoundPaused
  • setSoundPosition
  • setSoundProperties
  • setSoundSpeed
  • setSoundVolume
  • stopSound

Blip functions

  • createBlip
  • createBlipAttachedTo
  • getBlipColor
  • getBlipIcon
  • getBlipOrdering
  • getBlipSize
  • getBlipVisibleDistance
  • setBlipColor
  • setBlipIcon
  • setBlipOrdering
  • setBlipSize
  • setBlipVisibleDistance

Browser functions

  • canBrowserNavigateBack
  • canBrowserNavigateForward
  • createBrowser
  • executeBrowserJavascript
  • focusBrowser
  • getBrowserProperty
  • getBrowserSettings
  • getBrowserSource
  • getBrowserTitle
  • getBrowserURL
  • injectBrowserMouseDown
  • injectBrowserMouseMove
  • injectBrowserMouseUp
  • injectBrowserMouseWheel
  • isBrowserDomainBlocked
  • isBrowserFocused
  • isBrowserLoading
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20806)
  • isBrowserRenderingPaused
  • loadBrowserURL
  • navigateBrowserBack
  • navigateBrowserForward
  • reloadBrowserPage
  • requestBrowserDomains
  • resizeBrowser
  • setBrowserAjaxHandler
  • setBrowserProperty
  • setBrowserRenderingPaused
  • setBrowserVolume
  • toggleBrowserDevTools

GUI Functions

  • guiCreateBrowser
  • guiGetBrowser

Camera functions

  • fadeCamera
  • getCamera
  • getCameraClip
  • getCameraFieldOfView
  • getCameraGoggleEffect
  • getCameraInterior
  • getCameraMatrix
  • getCameraShakeLevel
  • getCameraTarget
  • getCameraViewMode
  • setCameraClip
  • setCameraFieldOfView
  • setCameraGoggleEffect
  • setCameraInterior
  • setCameraMatrix
  • setCameraShakeLevel
  • setCameraTarget
  • setCameraViewMode

Clothes and body functions

  • addPedClothes
  • getBodyPartName
  • getClothesByTypeIndex
  • getClothesTypeName
  • getPedClothes
  • getTypeIndexFromClothes
  • removePedClothes

Collision shape functions

  • addColPolygonPoint
  • createColCircle
  • createColCuboid
  • createColPolygon
  • createColRectangle
  • createColSphere
  • createColTube
  • ADDED/UPDATED IN VERSION 1.5.8 r20807:
  • getColPolygonHeight
  • getColPolygonPoints
  • getColPolygonPointPosition
  • getColShapeType
  • getColShapeRadius
  • getColShapeSize
  • getElementColShape
  • getElementsWithinColShape
  • isElementWithinColShape
  • isInsideColShape
  • removeColPolygonPoint
  • ADDED/UPDATED IN VERSION 1.5.8 r20807:
  • setColPolygonHeight
  • setColPolygonPointPosition
  • setColShapeRadius
  • setColShapeSize

Cursor functions

  • getCursorAlpha
  • getCursorPosition
  • isCursorShowing
  • setCursorAlpha
  • setCursorPosition
  • showCursor

Drawing functions

  • dxConvertPixels
  • dxCreateFont
  • dxCreateRenderTarget
  • dxCreateScreenSource
  • dxCreateShader
  • dxCreateTexture
  • dxDrawCircle
  • dxDrawImage
  • dxDrawImageSection
  • dxDrawLine
  • dxDrawLine3D
  • dxDrawMaterialLine3D
  • dxDrawMaterialPrimitive
  • dxDrawMaterialPrimitive3D
  • dxDrawMaterialSectionLine3D
  • dxDrawPrimitive
  • dxDrawPrimitive3D
  • dxDrawRectangle
  • dxDrawText
  • dxDrawWiredSphere
  • dxGetBlendMode
  • dxGetFontHeight
  • dxGetMaterialSize
  • dxGetPixelColor
  • dxGetPixelsSize
  • dxGetPixelsFormat
  • dxGetStatus
  • dxGetTextSize
  • dxGetTextWidth
  • dxGetTexturePixels
  • dxIsAspectRatioAdjustmentEnabled
  • dxSetAspectRatioAdjustmentEnabled
  • dxSetBlendMode
  • dxSetPixelColor
  • dxSetRenderTarget
  • dxSetShaderValue
  • dxSetShaderTessellation
  • dxSetShaderTransform
  • dxSetTestMode
  • dxSetTextureEdge
  • dxSetTexturePixels
  • dxUpdateScreenSource

Effects functions

  • createEffect
  • fxAddBlood
  • fxAddBulletImpact
  • fxAddBulletSplash
  • fxAddDebris
  • fxAddFootSplash
  • fxAddGlass
  • fxAddGunshot
  • fxAddPunchImpact
  • fxAddSparks
  • fxAddTankFire
  • fxAddTyreBurst
  • fxAddWaterHydrant
  • fxAddWaterSplash
  • fxAddWood
  • getEffectDensity
  • getEffectSpeed
  • setEffectDensity
  • setEffectSpeed

Element functions

  • attachElements
  • createElement
  • destroyElement
  • detachElements
  • getAttachedElements
  • getElementAlpha
  • getElementAngularVelocity
  • getElementAttachedOffsets
  • getElementAttachedTo
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20704)
  • getElementBoneMatrix
  • getElementBonePosition
  • getElementBoneRotation
  • getElementBoundingBox
  • getElementByID
  • getElementChild
  • getElementChildren
  • getElementChildrenCount
  • getElementCollisionsEnabled
  • getElementColShape
  • getElementData
  • getElementDimension
  • getElementDistanceFromCentreOfMassToBaseOfModel
  • getElementHealth
  • getElementID
  • getElementInterior
  • * FEATURE ADDED IN 1.5.9 (REVISION: r21367)
  • getElementLighting
  • getElementMatrix
  • getElementModel
  • getElementParent
  • getElementPosition
  • getElementRadius
  • getElementRotation
  • getElementsByType
  • getElementsWithinColShape
  • getElementsWithinRange
  • getElementType
  • getElementVelocity
  • getLowLODElement
  • getRootElement
  • isElement
  • isElementAttached
  • isElementCallPropagationEnabled
  • isElementCollidableWith
  • isElementDoubleSided
  • isElementFrozen
  • isElementInWater
  • isElementLocal
  • isElementLowLOD
  • isElementOnScreen
  • isElementStreamable
  • isElementStreamedIn
  • isElementSyncer
  • isElementWaitingForGroundToLoad
  • isElementWithinColShape
  • setElementAlpha
  • setElementAngularVelocity
  • setElementAttachedOffsets
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20704)
  • setElementBoneMatrix
  • setElementBonePosition
  • setElementBoneRotation
  • setElementCallPropagationEnabled
  • setElementCollidableWith
  • setElementCollisionsEnabled
  • setElementData
  • setElementDimension
  • setElementDoubleSided
  • setElementFrozen
  • setElementHealth
  • setElementID
  • setElementInterior
  • setElementMatrix
  • setElementModel
  • setElementParent
  • setElementPosition
  • setElementRotation
  • setElementStreamable
  • setElementVelocity
  • setLowLODElement
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20704)
  • updateElementRpHAnim

Engine functions

  • engineApplyShaderToWorldTexture
  • engineFreeModel
  • engineGetModelIDFromName
  • engineGetModelLODDistance
  • engineGetModelNameFromID
  • engineGetModelPhysicalPropertiesGroup
  • engineGetModelTextureNames
  • engineGetModelTextures
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20704)
  • engineGetModelVisibleTime
  • engineGetObjectGroupPhysicalProperty
  • engineGetSurfaceProperties
  • engineGetVisibleTextureNames
  • engineImportTXD
  • engineLoadCOL
  • engineLoadDFF
  • engineLoadIFP
  • engineLoadTXD
  • engineRemoveShaderFromWorldTexture
  • engineReplaceAnimation
  • engineReplaceCOL
  • engineReplaceModel
  • engineRequestModel
  • engineResetModelLODDistance
  • engineResetSurfaceProperties
  • engineRestoreAnimation
  • engineRestoreCOL
  • engineRestoreModel
  • engineRestoreModelPhysicalPropertiesGroup
  • engineRestoreObjectGroupPhysicalProperties
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20704)
  • engineRestreamWorld
  • engineSetAsynchronousLoading
  • engineSetModelLODDistance
  • engineSetModelPhysicalPropertiesGroup
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20704)
  • engineSetModelVisibleTime
  • engineSetObjectGroupPhysicalProperty
  • engineSetSurfaceProperties
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20901)
  • engineStreamingFreeUpMemory
  • engineStreamingGetUsedMemory

Event functions

  • addEvent
  • addEventHandler
  • cancelEvent
  • cancelLatentEvent
  • getEventHandlers
  • getLatentEventHandles
  • getLatentEventStatus
  • removeEventHandler
  • triggerEvent
  • triggerLatentServerEvent
  • triggerServerEvent
  • wasEventCancelled

Explosion functions

  • createExplosion

File functions

  • fileClose
  • fileCopy
  • fileCreate
  • fileDelete
  • fileExists
  • fileFlush
  • fileGetPath
  • fileGetPos
  • fileGetSize
  • fileIsEOF
  • fileOpen
  • fileRead
  • fileRename
  • fileSetPos
  • fileWrite

Fire functions

  • createFire
  • extinguishFire

GUI functions

General functions

  • guiBringToFront
  • getChatboxLayout
  • guiCreateFont
  • guiBlur
  • guiFocus
  • guiGetAlpha
  • guiGetCursorType
  • guiGetEnabled
  • guiGetFont
  • guiGetInputEnabled
  • guiGetInputMode
  • guiGetPosition
  • guiGetProperties
  • guiGetProperty
  • guiGetScreenSize
  • guiGetSize
  • guiGetText
  • guiGetVisible
  • guiMoveToBack
  • guiSetAlpha
  • guiSetEnabled
  • guiSetFont
  • guiSetInputEnabled
  • guiSetInputMode
  • guiSetPosition
  • guiSetProperty
  • guiSetSize
  • guiSetText
  • guiSetVisible
  • isChatBoxInputActive
  • isConsoleActive
  • isDebugViewActive
  • isMainMenuActive
  • isMTAWindowActive
  • isTransferBoxActive
  • setDebugViewActive

Browsers

  • guiCreateBrowser
  • guiGetBrowser

Buttons

  • guiCreateButton

Checkboxes

  • guiCheckBoxGetSelected
  • guiCheckBoxSetSelected
  • guiCreateCheckBox

Comboboxes

  • guiCreateComboBox
  • guiComboBoxAddItem
  • guiComboBoxClear
  • guiComboBoxGetItemCount
  • guiComboBoxGetItemText
  • guiComboBoxGetSelected
  • guiComboBoxIsOpen
  • guiComboBoxRemoveItem
  • guiComboBoxSetItemText
  • guiComboBoxSetOpen
  • guiComboBoxSetSelected

Edit Boxes

  • guiCreateEdit
  • guiEditGetCaretIndex
  • guiEditGetMaxLength
  • guiEditIsMasked
  • guiEditIsReadOnly
  • guiEditSetCaretIndex
  • guiEditSetMasked
  • guiEditSetMaxLength
  • guiEditSetReadOnly

Gridlists

  • guiCreateGridList
  • guiGridListAddColumn
  • guiGridListAddRow
  • guiGridListAutoSizeColumn
  • guiGridListClear
  • guiGridListGetColumnCount
  • guiGridListGetColumnTitle
  • guiGridListGetColumnWidth
  • guiGridListGetHorizontalScrollPosition
  • guiGridListGetItemColor
  • guiGridListGetItemData
  • guiGridListGetItemText
  • guiGridListGetRowCount
  • guiGridListGetSelectedCount
  • guiGridListGetSelectedItem
  • guiGridListGetSelectedItems
  • guiGridListGetSelectionMode
  • guiGridListIsSortingEnabled
  • guiGridListGetVerticalScrollPosition
  • guiGridListInsertRowAfter
  • guiGridListRemoveColumn
  • guiGridListRemoveRow
  • guiGridListSetColumnTitle
  • guiGridListSetColumnWidth
  • guiGridListSetHorizontalScrollPosition
  • guiGridListSetItemColor
  • guiGridListSetItemData
  • guiGridListSetItemText
  • guiGridListSetScrollBars
  • guiGridListSetSelectedItem
  • guiGridListSetSelectionMode
  • guiGridListSetSortingEnabled
  • guiGridListSetVerticalScrollPosition

Memos

  • guiCreateMemo
  • guiMemoGetCaretIndex
  • guiMemoGetVerticalScrollPosition
  • guiMemoSetVerticalScrollPosition
  • guiMemoIsReadOnly
  • guiMemoSetCaretIndex
  • guiMemoSetReadOnly

Progressbars

  • guiCreateProgressBar
  • guiProgressBarGetProgress
  • guiProgressBarSetProgress

Radio Buttons

  • guiCreateRadioButton
  • guiRadioButtonGetSelected
  • guiRadioButtonSetSelected

Scrollbars

  • guiCreateScrollBar
  • guiScrollBarGetScrollPosition
  • guiScrollBarSetScrollPosition

Scrollpanes

  • guiCreateScrollPane
  • guiScrollPaneGetHorizontalScrollPosition
  • guiScrollPaneGetVerticalScrollPosition
  • guiScrollPaneSetHorizontalScrollPosition
  • guiScrollPaneSetScrollBars
  • guiScrollPaneSetVerticalScrollPosition

Static Images

  • guiCreateStaticImage
  • guiStaticImageGetNativeSize
  • guiStaticImageLoadImage

Tab Panels

  • guiCreateTabPanel
  • guiGetSelectedTab
  • guiSetSelectedTab

Tabs

  • guiCreateTab
  • guiDeleteTab

Text Labels

  • guiCreateLabel
  • guiLabelGetColor
  • guiLabelGetFontHeight
  • guiLabelGetTextExtent
  • guiLabelSetColor
  • guiLabelSetHorizontalAlign
  • guiLabelSetVerticalAlign

Windows

  • guiCreateWindow
  • guiWindowIsMovable
  • guiWindowIsSizable
  • guiWindowSetMovable
  • guiWindowSetSizable

Input functions

  • addCommandHandler
  • bindKey
  • executeCommandHandler
  • getAnalogControlState
  • getBoundKeys
  • getCommandHandlers
  • getCommandsBoundToKey
  • getFunctionsBoundToKey
  • getKeyBoundToCommand
  • getKeyBoundToFunction
  • getKeyState
  • isCapsLockEnabled
  • isControlEnabled
  • removeCommandHandler
  • setAnalogControlState
  • toggleAllControls
  • toggleControl
  • unbindKey

Light functions

  • createLight
  • getLightColor
  • getLightDirection
  • getLightRadius
  • getLightType
  • setLightColor
  • setLightDirection
  • setLightRadius

Marker functions

  • createMarker
  • getMarkerColor
  • getMarkerCount
  • getMarkerIcon
  • getMarkerSize
  • getMarkerTarget
  • getMarkerType
  • isCoronaReflectionEnabled
  • isElementWithinMarker
  • setCoronaReflectionEnabled
  • setMarkerColor
  • setMarkerIcon
  • setMarkerSize
  • setMarkerTarget
  • setMarkerType

Matrix functions

  • Matrix
  • Vector/Vector2
  • Vector/Vector3
  • Vector/Vector4

Object functions

  • breakObject
  • createObject
  • getObjectMass
  • getObjectScale
  • getObjectProperty
  • isObjectBreakable
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20811)
  • isObjectMoving
  • moveObject
  • respawnObject
  • setObjectBreakable
  • setObjectMass
  • setObjectScale
  • setObjectProperty
  • stopObject
  • toggleObjectRespawn

Output functions

  • clearChatBox
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20854)
  • clearDebugBox
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20898)
  • isChatInputBlocked
  • isChatVisible
  • outputChatBox
  • outputConsole
  • outputDebugString
  • showChat

Ped functions

  • addPedClothes
  • canPedBeKnockedOffBike
  • createPed
  • BEFORE VERSION 1.5.6 :
  • doesPedHaveJetPack
  • getPedAmmoInClip
  • getPedAnalogControlState
  • getPedAnimation
  • getPedArmor
  • getPedBonePosition
  • getPedCameraRotation
  • getPedClothes
  • getPedContactElement
  • getPedControlState
  • getPedFightingStyle
  • getPedMoveState
  • getPedOccupiedVehicle
  • getPedOccupiedVehicleSeat
  • getPedOxygenLevel
  • getPedSimplestTask
  • getPedStat
  • getPedTarget
  • getPedTargetCollision
  • getPedTargetEnd
  • getPedTargetStart
  • getPedTask
  • getPedTotalAmmo
  • getPedVoice
  • getPedWalkingStyle
  • getPedWeapon
  • getPedWeaponMuzzlePosition
  • getPedWeaponSlot
  • getValidPedModels
  • givePedWeapon
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20935)
  • isPedBleeding
  • isPedChoking
  • isPedDead
  • isPedDoingGangDriveby
  • isPedDoingTask
  • isPedDucked
  • isPedFootBloodEnabled
  • isPedHeadless
  • isPedInVehicle
  • isPedOnFire
  • isPedOnGround
  • isPedReloadingWeapon
  • isPedTargetingMarkerEnabled
  • isPedWearingJetpack
  • killPed
  • removePedClothes
  • removePedFromVehicle
  • setAnalogControlState
  • setPedAimTarget
  • setPedAnalogControlState
  • setPedAnimation
  • setPedAnimationProgress
  • setPedAnimationSpeed
  • setPedArmor
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20935)
  • setPedBleeding
  • setPedCameraRotation
  • setPedCanBeKnockedOffBike
  • setPedControlState
  • setPedDoingGangDriveby
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20740)
  • setPedEnterVehicle
  • setPedExitVehicle
  • setPedFightingStyle
  • setPedFootBloodEnabled
  • setPedHeadless
  • setPedLookAt
  • setPedOnFire
  • setPedOxygenLevel
  • setPedStat
  • setPedTargetingMarkerEnabled
  • setPedVoice
  • setPedWalkingStyle
  • setPedWeaponSlot
  • warpPedIntoVehicle

Pickup functions

  • createPickup
  • getPickupAmmo
  • getPickupAmount
  • getPickupType
  • getPickupWeapon
  • setPickupType

Player functions

  • forcePlayerMap
  • getLocalPlayer
  • getPlayerBlurLevel
  • getPlayerFromName
  • getPlayerMapBoundingBox
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20945)
  • getPlayerMapOpacity
  • getPlayerMoney
  • getPlayerName
  • getPlayerNametagColor
  • getPlayerNametagText
  • getPlayerPing
  • getPlayerTeam
  • getPlayerWantedLevel
  • givePlayerMoney
  • isPlayerHudComponentVisible
  • isPlayerMapForced
  • isPlayerMapVisible
  • isPlayerNametagShowing
  • isVoiceEnabled
  • resetBlurLevel
  • setPlayerBlurLevel
  • setPlayerHudComponentVisible
  • setPlayerMoney
  • setPlayerNametagColor
  • setPlayerNametagShowing
  • setPlayerNametagText
  • takePlayerMoney

Projectile functions

  • createProjectile
  • detonateSatchels
  • getProjectileCounter
  • getProjectileCreator
  • getProjectileForce
  • getProjectileTarget
  • getProjectileType
  • setProjectileCounter

Radar area functions

  • createRadarArea
  • getRadarAreaColor
  • getRadarAreaSize
  • isInsideRadarArea
  • isRadarAreaFlashing
  • setRadarAreaColor
  • setRadarAreaFlashing
  • setRadarAreaSize

Resource functions

  • call
  • fetchRemote
  • getResourceConfig
  • getResourceDynamicElementRoot
  • getResourceExportedFunctions
  • getResourceFromName
  • getResourceGUIElement
  • getResourceName
  • getResourceRootElement
  • getResourceState
  • getThisResource
  • getRemoteRequests
  • getRemoteRequestInfo
  • abortRemoteRequest

Searchlight functions

  • createSearchLight
  • getSearchLightEndPosition
  • getSearchLightEndRadius
  • getSearchLightStartPosition
  • getSearchLightStartRadius
  • setSearchLightEndPosition
  • setSearchLightEndRadius
  • setSearchLightStartPosition
  • setSearchLightStartRadius

SVG functions

  • * FEATURE ADDED IN 1.5.9 (REVISION: r20979)
  • svgCreate
  • svgGetDocumentXML
  • svgGetSize
  • svgSetDocumentXML
  • svgSetSize
  • * FEATURE ADDED IN 1.5.9 (REVISION: r21155)
  • svgSetUpdateCallback

Team functions

  • countPlayersInTeam
  • getPlayerTeam
  • getPlayersInTeam
  • getTeamColor
  • getTeamFriendlyFire
  • getTeamFromName
  • getTeamName

Utility functions

  • addDebugHook
  • base64Decode
  • base64Encode
  • bitAnd
  • bitNot
  • bitOr
  • bitXor
  • bitTest
  • bitLRotate
  • bitRRotate
  • bitLShift
  • bitRShift
  • bitArShift
  • bitExtract
  • bitReplace
  • createTrayNotification
  • debugSleep
  • downloadFile
  • decodeString
  • encodeString
  • fromJSON
  • getColorFromString
  • getDevelopmentMode
  • getDistanceBetweenPoints2D
  • getDistanceBetweenPoints3D
  • getEasingValue
  • getFPSLimit
  • getKeyboardLayout
  • getLocalization
  • getNetworkStats
  • getNetworkUsageData
  • getPerformanceStats
  • getRealTime
  • getTickCount
  • getTimers
  • getTimerDetails
  • gettok
  • getUserdataType
  • getVersion
  • hash
  • inspect
  • interpolateBetween
  • iprint
  • isOOPEnabled
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20844)
  • isShowCollisionsEnabled
  • isShowSoundEnabled
  • isTimer
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20788)
  • isTransferBoxAlwaysVisible
  • isTransferBoxVisible
  • isTrayNotificationEnabled
  • killTimer
  • md5
  • passwordHash
  • passwordVerify
  • pregFind
  • pregMatch
  • pregReplace
  • removeDebugHook
  • resetTimer
  • setClipboard
  • setDevelopmentMode
  • setFPSLimit
  • setTimer
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20788)
  • setTransferBoxVisible
  • setWindowFlashing
  • sha256
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20844)
  • showCol
  • showSound
  • split
  • teaDecode
  • teaEncode
  • tocolor
  • toJSON
  • utfChar
  • utfCode
  • utfLen
  • utfSeek
  • utfSub

UTF8 Library

  • utf8.byte
  • utf8.char
  • utf8.charpos
  • utf8.escape
  • utf8.find
  • utf8.fold
  • utf8.gmatch
  • utf8.gsub
  • utf8.insert
  • utf8.len
  • utf8.lower
  • utf8.match
  • utf8.ncasecmp
  • utf8.next
  • utf8.remove
  • utf8.reverse
  • utf8.sub
  • utf8.title
  • utf8.upper
  • utf8.width
  • utf8.widthindex

Vehicle functions

  • addVehicleUpgrade
  • areVehicleLightsOn
  • attachTrailerToVehicle
  • blowVehicle
  • createVehicle
  • detachTrailerFromVehicle
  • fixVehicle
  • getHeliBladeCollisionsEnabled
  • getHelicopterRotorSpeed
  • getOriginalHandling
  • getTrainDirection
  • getTrainPosition
  • getTrainSpeed
  • getVehicleAdjustableProperty
  • getVehicleColor
  • getVehicleCompatibleUpgrades
  • getVehicleComponentPosition
  • getVehicleComponentRotation
  • getVehicleComponents
  • getVehicleComponentScale
  • getVehicleComponentVisible
  • getVehicleController
  • getVehicleCurrentGear
  • getVehicleDoorOpenRatio
  • getVehicleDoorState
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20797)
  • getVehicleDummyPosition
  • getVehicleEngineState
  • getVehicleGravity
  • getVehicleHandling
  • getVehicleHeadLightColor
  • getVehicleLandingGearDown
  • getVehicleLightState
  • getVehicleMaxPassengers
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20797)
  • getVehicleModelDummyDefaultPosition
  • getVehicleModelDummyPosition
  • getVehicleModelExhaustFumesPosition
  • getVehicleModelFromName
  • getVehicleModelWheelSize
  • getVehicleName
  • getVehicleNameFromModel
  • getVehicleNitroCount
  • getVehicleNitroLevel
  • getVehicleOccupant
  • getVehicleOccupants
  • getVehicleOverrideLights
  • getVehiclePaintjob
  • getVehiclePanelState
  • getVehiclePlateText
  • getVehicleSirenParams
  • getVehicleSirens
  • getVehicleSirensOn
  • getVehicleTowedByVehicle
  • getVehicleTowingVehicle
  • BEFORE VERSION 1.5.6 :
  • getVehicleTurnVelocity
  • getVehicleTurretPosition
  • getVehicleType
  • getVehicleUpgradeOnSlot
  • getVehicleUpgrades
  • getVehicleUpgradeSlotName
  • getVehicleVariant
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20726)
  • getVehicleWheelFrictionState
  • getVehicleWheelScale
  • getVehicleWheelStates
  • isTrainChainEngine
  • isTrainDerailable
  • isTrainDerailed
  • isVehicleBlown
  • isVehicleDamageProof
  • isVehicleFuelTankExplodable
  • isVehicleLocked
  • isVehicleNitroActivated
  • isVehicleNitroRecharging
  • isVehicleOnGround
  • isVehicleTaxiLightOn
  • isVehicleWheelOnGround
  • isVehicleWindowOpen
  • removeVehicleUpgrade
  • resetVehicleComponentPosition
  • resetVehicleComponentRotation
  • resetVehicleComponentScale
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20797)
  • resetVehicleDummyPositions
  • setHeliBladeCollisionsEnabled
  • setHelicopterRotorSpeed
  • setTrainDerailable
  • setTrainDerailed
  • setTrainDirection
  • setTrainPosition
  • setTrainSpeed
  • setVehicleAdjustableProperty
  • setVehicleColor
  • setVehicleComponentPosition
  • setVehicleComponentRotation
  • setVehicleComponentScale
  • setVehicleComponentVisible
  • setVehicleDamageProof
  • setVehicleDirtLevel
  • setVehicleDoorOpenRatio
  • setVehicleDoorState
  • setVehicleDoorsUndamageable
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20797)
  • setVehicleDummyPosition
  • setVehicleEngineState
  • setVehicleFuelTankExplodable
  • setVehicleGravity
  • setVehicleHandling
  • setVehicleHeadLightColor
  • setVehicleLandingGearDown
  • setVehicleLightState
  • setVehicleLocked
  • setVehicleModelDummyPosition
  • setVehicleModelExhaustFumesPosition
  • setVehicleModelWheelSize
  • setVehicleNitroActivated
  • setVehicleNitroCount
  • setVehicleNitroLevel
  • setVehicleOverrideLights
  • setVehiclePaintjob
  • setVehiclePanelState
  • setVehiclePlateText
  • setVehicleSirens
  • setVehicleSirensOn
  • setVehicleTaxiLightOn
  • BEFORE VERSION 1.5.6 :
  • setVehicleTurnVelocity
  • setVehicleTurretPosition
  • * FEATURE UPDATED IN 1.5.9 (REVISION: r20693)
  • setVehicleVariant
  • setVehicleWheelScale
  • setVehicleWheelStates
  • setVehicleWindowOpen

Water functions

  • createWater
  • getWaterColor
  • getWaterLevel
  • getWaterVertexPosition
  • getWaveHeight
  • isWaterDrawnLast
  • resetWaterColor
  • resetWaterLevel
  • setWaterColor
  • setWaterDrawnLast
  • setWaterLevel
  • setWaterVertexPosition
  • setWaveHeight

Weapon functions

  • getOriginalWeaponProperty
  • getSlotFromWeapon
  • getWeaponIDFromName
  • getWeaponNameFromID
  • getWeaponProperty

Weapon creation functions

  • createWeapon
  • fireWeapon
  • getWeaponAmmo
  • getWeaponClipAmmo
  • getWeaponFiringRate
  • getWeaponFlags
  • getWeaponOwner
  • getWeaponProperty
  • getWeaponState
  • getWeaponTarget
  • resetWeaponFiringRate
  • setWeaponAmmo
  • setWeaponClipAmmo
  • setWeaponFiringRate
  • setWeaponFlags
  • setWeaponProperty
  • setWeaponState
  • setWeaponTarget

World functions

  • areTrafficLightsLocked
  • createSWATRope
  • getAircraftMaxHeight
  • getAircraftMaxVelocity
  • getBirdsEnabled
  • getCloudsEnabled
  • getCoronaReflectionsEnabled
  • getFarClipDistance
  • getFogDistance
  • getGameSpeed
  • getGarageBoundingBox
  • getGaragePosition
  • getGarageSize
  • getGravity
  • getGroundPosition
  • getHeatHaze
  • getInteriorFurnitureEnabled
  • getInteriorSoundsEnabled
  • getJetpackMaxHeight
  • getMinuteDuration
  • getMoonSize
  • getNearClipDistance
  • getOcclusionsEnabled
  • getPedsLODDistance
  • getPlayerBlurLevel
  • getRainLevel
  • * FEATURE ADDED IN 1.5.9 (REVISION: r20675)
  • getRoofPosition
  • getScreenFromWorldPosition
  • getSunColor
  • getSunSize
  • getTime
  • getTrafficLightState
  • getVehiclesLODDistance
  • getWeather
  • getWindVelocity
  • getWorldFromScreenPosition
  • getZoneName
  • isAmbientSoundEnabled
  • isGarageOpen
  • isLineOfSightClear
  • isWorldSoundEnabled
  • isWorldSpecialPropertyEnabled
  • processLineOfSight
  • removeWorldModel
  • resetAmbientSounds
  • resetBlurLevel
  • resetColorFilter
  • resetCoronaReflectionsEnabled
  • resetFarClipDistance
  • resetFogDistance
  • resetHeatHaze
  • resetMoonSize
  • resetNearClipDistance
  • resetPedsLODDistance
  • resetRainLevel
  • resetSkyGradient
  • resetSunColor
  • resetSunSize
  • resetVehiclesLODDistance
  • resetWindVelocity
  • resetWorldSounds
  • restoreAllWorldModels
  • restoreWorldModel
  • setAircraftMaxHeight
  • setAircraftMaxVelocity
  • setAmbientSoundEnabled
  • setBirdsEnabled
  • setCloudsEnabled
  • setColorFilter
  • setCoronaReflectionsEnabled
  • setFarClipDistance
  • setFogDistance
  • setGameSpeed
  • setGarageOpen
  • setGravity
  • setHeatHaze
  • setInteriorFurnitureEnabled
  • setInteriorSoundsEnabled
  • setJetpackMaxHeight
  • setMinuteDuration
  • setMoonSize
  • setNearClipDistance
  • setOcclusionsEnabled
  • setPedsLODDistance
  • setPlayerBlurLevel
  • setRainLevel
  • setSkyGradient
  • setSunColor
  • setSunSize
  • setTime
  • setTrafficLightsLocked
  • setTrafficLightState
  • setVehiclesLODDistance
  • setWeather
  • setWeatherBlended
  • setWindVelocity
  • setWorldSoundEnabled
  • setWorldSpecialPropertyEnabled
  • testLineAgainstWater

XML functions

  • xmlCopyFile
  • xmlCreateChild
  • xmlCreateFile
  • xmlDestroyNode
  • xmlFindChild
  • xmlLoadFile
  • xmlLoadString
  • xmlNodeGetAttribute
  • xmlNodeGetAttributes
  • xmlNodeGetChildren
  • xmlNodeGetName
  • xmlNodeGetParent
  • xmlNodeGetValue
  • xmlNodeSetAttribute
  • xmlNodeSetName
  • xmlNodeSetValue
  • xmlSaveFile
  • xmlUnloadFile