Files
GTAConnectedDocs/GTAIVClientFunctions.txt
2026-01-20 02:10:07 +04:00

569 lines
5.7 KiB
Plaintext

Audio
audio.createSound
audio.createSoundFromURL
Blips
blip.children
blip.clearExistsFor
blip.dimension
blip.existsFor
blip.getData
blip.getRotation
blip.id
blip.isCreatedFor
blip.isLocal
blip.isOwner
blip.isSyncer
blip.isType
blip.name
blip.netFlags
blip.parent
blip.position
blip.removeAllData
blip.removeData
blip.resource
blip.rotation
blip.setData
blip.setExistsFor
blip.setRotation
blip.setSyncer
blip.streamInDistance
blip.streamOutDistance
blip.syncer
blip.syncerId
blip.type
Camera
gta.fadeCamera
gta.fading
gta.restoreCamera
gta.setCameraLookAt
Cancellable Events
cancellableEvent.isDefaultPrevented
cancellableEvent.preventDefault
Chat
message
setChatWindowEnabled
Client
getClient
getClientFromPlayerElement
getClients
localClient
client.*
client.administrator
client.console
client.despawnPlayer
client.disconnect
client.game
client.gameVersion
client.getData
client.index
client.ip
client.name
client.ping
client.player
client.removeAllData
client.removeData
client.setData
Commands
addCommandHandler
consoleCommand
hasCommandHandler
removeCommandHandler
Computer
gta.useComputer
Elements
destroyElement
getElementFromId
getElementFromName
getElementsByType
element.*
element.children
element.clearExistsFor
element.dimension
element.existsFor
element.getData
element.getRotation
element.id
element.isCreatedFor
element.isLocal
element.isOwner
element.isSyncer
element.isType
element.name
element.netFlags
element.parent
element.position
element.removeAllData
element.removeData
element.resource
element.rotation
element.setData
element.setExistsFor
element.setRotation
element.setSyncer
element.streamInDistance
element.streamOutDistance
element.syncer
element.syncerId
element.type
Entity
entity.children
entity.clearExistsFor
entity.dimension
entity.existsFor
entity.getData
entity.getRotation
entity.heading
entity.id
entity.isCreatedFor
entity.isLocal
entity.isOwner
entity.isSyncer
entity.isType
entity.matrix
entity.modelIndex
entity.name
entity.netFlags
entity.parent
entity.position
entity.removeAllData
entity.removeData
entity.resource
entity.rotation
entity.setData
entity.setExistsFor
entity.setRotation
entity.setSyncer
entity.streamInDistance
entity.streamOutDistance
entity.syncer
entity.syncerId
entity.type
Events
addEvent
addEventHandler
bindEventHandler
removeEventHandler
triggerEvent
triggerNetworkEvent
unbindEventHandler
Files
createFile
fileExists
loadTextFile
openFile
saveTextFile
Fonts
font.measure
font.render
font.size
lucasFont.createDefaultFont
lucasFont.createFont
lucasFont.enumFontFamilies
Game / IV-Specific
gta.game
gta.ivEpisode
gta.ivGamemode
gta.startCutsceneNow
gta.time.day
gta.time.hour
gta.time.minute
gta.time.second
gta.timeStep
gta.gameSpeed
gta.tickCount
gta.setWindSpeed
gta.aspectRatio
gta.width
gta.height
gta.startNewScript
gta.terminateScript
gta.setHostMatch
gta.shutdownAndLaunchNetworkGame
gta.shutdownAndLaunchSinglePlayerGame
Graphics
graphics.drawRectangle
graphics.loadBMP
graphics.loadPNG
GUI / HTML UI
(All GUI, GUIElement, GUIHtmlElement, GUIHtmlView, GUIPage, GUIWindow entries in your list are IV-compatible)
HUD
hudEnabled
setHUDEnabled
IPL
gta.removeIpl
gta.requestIpl
Keys
bindKey
isKeyDown
isScancodePressed
unbindAllKeys
unbindKey
Markers
(All marker entries with icon-iv.png are valid — sync/dimension-based markers work in IV)
Matrix / Math
(All matrix4x4.*, vec2.*, vec3.* entries listed are IV-safe)
Network / NetFlags
(All netFlags.*, addNetworkHandler, connect, disconnect, etc.)
Objects
registerNetObject
object.children
object.clearExistsFor
object.dimension
object.existsFor
object.getData
object.getRotation
object.heading
object.health
object.id
object.isCreatedFor
object.isLocal
object.isOwner
object.isSyncer
object.isType
object.matrix
object.modelIndex
object.name
object.netFlags
object.parent
object.position
object.removeAllData
object.removeData
object.resource
object.rotation
object.setData
object.setExistsFor
object.setRotation
object.setSyncer
object.streamInDistance
object.streamOutDistance
object.syncer
object.syncerId
object.turnVelocity
object.type
object.velocity
Peds / Players
(All ped.* and player.* entries ONLY where icon-iv.png is present — mainly sync, dimension, weapons, vehicles, health, armour, money, wanted level, nametag, phone, sprint, warp, stream distances)
Phone
gta.giveContact
gta.triggerPhoneCall
Platform
platform.modState
platform.name
platform.ticks
Reflection
exportFunction
reflection.call
reflection.clone
reflection.createFunction
reflection.move
reflection.tostring
Resources
(All resource.*, findResourceByName, getResources, thisResource)
Screen
gta.aspectRatio
gta.width
gta.height
Sound
sound.play
sound.position
sound.stop
sound.volume
Stream / Timers / XML
(All stream.*, setTimeout, setInterval, xmlDocument.*, xmlElement.*)
Vehicles (IV)
createVehicle
getVehicles
gta.createVehicle
vehicle.*
Weather / World
gta.forceWeather
gta.weather
addToWorld
removeFromWorld
gta.findGroundZCoordinate
gta.findRoofZCoordinate
gta.gravity