Difference between revisions of "Server/Functions"

From GTA Connected
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:Server Functions}}
 
{{DISPLAYTITLE:Server Functions}}
 
This is a list of all server functions. For more information on using functions, visit the [[HowTo/Functions|how to use functions]] page.
 
This is a list of all server functions. For more information on using functions, visit the [[HowTo/Functions|how to use functions]] page.
test1
+
 
 
== Blip Functions ==
 
== Blip Functions ==
 
{{Server/Functions/Blip}}
 
{{Server/Functions/Blip}}

Revision as of 01:45, 13 August 2019

This is a list of all server functions. For more information on using functions, visit the how to use functions page.

Blip Functions

gta.createBlip
gta.createBlipAttachedTo

blip.children
blip.dimension
blip.getData
blip.getRotation
blip.id
blip.isType
blip.name
blip.onAllDimensions
blip.parent
blip.position
blip.removeAllData
blip.removeData
blip.resource
blip.setData
blip.setRotation
blip.setSyncer
blip.syncer
blip.type

Building Functions

gta.createBuilding

building.children
building.dimension
building.getData
building.getRotation
building.heading
building.id
building.interior
building.isType
building.matrix
building.modelIndex
building.name
building.onAllDimensions
building.parent
building.position
building.removeAllData
building.removeData
building.resource
building.setData
building.setRotation
building.setSyncer
building.syncer
building.type

Camera Functions

fadeCamera

Chatbox Functions

message
messageAllExcept
messageClient

Civilian Functions

gta.createCivilian

civilian.children
civilian.dimension
civilian.getData
civilian.getRotation
civilian.heading
civilian.health
civilian.id
civilian.interior
civilian.isType
civilian.matrix
civilian.modelIndex
civilian.name
civilian.onAllDimensions
civilian.parent
civilian.position
civilian.removeAllData
civilian.removeData
civilian.resource
civilian.setData
civilian.setRotation
civilian.setSyncer
civilian.syncer
civilian.type
civilian.vehicle
civilian.warpIntoVehicle

Client Functions

getClient
getClientFromPlayerElement
getClients

client.administrator
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

Command Functions

addCommandHandler
consoleCommand
removeCommandHandler

Element Functions

destroyElement
getElementFromId
getElementFromName
getElementsByType
gta.createElement

element.children
element.dimension
element.getData
element.id
element.isType
element.name
element.onAllDimensions
element.parent
element.removeAllData
element.removeData
element.resource
element.setData
element.setSyncer
element.syncer
element.type

Entity Functions

entity.children
entity.dimension
entity.getData
entity.getRotation
entity.heading
entity.id
entity.interior
entity.isType
entity.matrix
entity.modelIndex
entity.name
entity.onAllDimensions
entity.parent
entity.position
entity.removeAllData
entity.removeData
entity.resource
entity.setData
entity.setRotation
entity.setSyncer
entity.syncer
entity.type

Event Functions

addEvent
addEventHandler
bindEventHandler
removeEventHandler
triggerEvent
unbindEventHandler

event.isDefaultPrevented
event.preventDefault

File Functions

createFile
openFile

Garbage Collection Functions

collectAllGarbage

HTTP Functions

httpGet

Key Functions

bindKey
unbindAllKeys
unbindKey

KeyEvent Functions

keyEvent.down
keyEvent.isDefaultPrevented
keyEvent.keyCode
keyEvent.mod
keyEvent.preventDefault
keyEvent.repeat
keyEvent.scanCode

Matrix4x4 Functions

matrix4x4.getElement
matrix4x4.getVector3
matrix4x4.m11
matrix4x4.m12
matrix4x4.m13
matrix4x4.m14
matrix4x4.m21
matrix4x4.m22
matrix4x4.m23
matrix4x4.m24
matrix4x4.m31
matrix4x4.m32
matrix4x4.m33
matrix4x4.m34
matrix4x4.m41
matrix4x4.m42
matrix4x4.m43
matrix4x4.m44
matrix4x4.multiply
matrix4x4.setElement
matrix4x4.setIdentity
matrix4x4.setInverse
matrix4x4.setMultiply
matrix4x4.setRotate
matrix4x4.setRotateX
matrix4x4.setRotateY
matrix4x4.setRotateZ
matrix4x4.setScale
matrix4x4.setTranslate
matrix4x4.transformCoordinate

Miscellaneous Functions

inPoly
platform
toColour

Network Functions

addNetworkHandler
removeNetworkHandler
triggerNetworkEvent

Object Functions

gta.createObject

object.children
object.dimension
object.getData
object.getRotation
object.heading
object.id
object.interior
object.isType
object.matrix
object.modelIndex
object.name
object.onAllDimensions
object.parent
object.position
object.removeAllData
object.removeData
object.resource
object.setData
object.setRotation
object.setSyncer
object.syncer
object.type

Ped Functions

ped.children
ped.dimension
ped.getData
ped.getRotation
ped.heading
ped.health
ped.id
ped.interior
ped.isType
ped.matrix
ped.modelIndex
ped.name
ped.onAllDimensions
ped.parent
ped.position
ped.removeAllData
ped.removeData
ped.resource
ped.setData
ped.setRotation
ped.setSyncer
ped.syncer
ped.type
ped.vehicle
ped.warpIntoVehicle

Pickup Functions

gta.createPickup

Player Functions

gta.createPlayer
spawnPlayer

player.children
player.dimension
player.getData
player.getRotation
player.heading
player.health
player.id
player.interior
player.isType
player.matrix
player.modelIndex
player.name
player.onAllDimensions
player.parent
player.position
player.removeAllData
player.removeData
player.resource
player.setData
player.setRotation
player.setSyncer
player.syncer
player.type
player.vehicle
player.warpIntoVehicle

Reflection Functions

exportFunction
reflection.call
reflection.clone
reflection.createFunction
reflection.move
reflection.tostring

Resource Functions

findResourceByName
getResources
setErrorMode
thisResource

resource.exports
resource.getExport
resource.isStarted
resource.isStarting
resource.name
resource.restart
resource.start
resource.stop

SDL Functions

sdl.getKeyboardState
sdl.getKeyFromName
sdl.getKeyFromScancode
sdl.getKeyName
sdl.getModState
sdl.getScancodeFromKey
sdl.getScancodeFromName
sdl.getScancodeName
sdl.platform
sdl.setModState
sdl.ticks

Server Functions

server.game
server.gameMode
server.maxClients
server.name
server.port

Socket Functions

newSocket

socket.close
socket.connect
socket.delete
socket.send
socket.sendClient
socket.start
socket.stop

Sphere Functions

gta.createSphere

Stream Functions

stream.close
stream.length
stream.position
stream.readBytes
stream.readDouble
stream.readFloat
stream.readInt16
stream.readInt32
stream.readInt64
stream.readInt8
stream.readLine
stream.readString
stream.readUInt16
stream.readUInt32
stream.readUInt64
stream.readUInt8
stream.writeBytes
stream.writeDouble
stream.writeFloat
stream.writeInt16
stream.writeInt32
stream.writeInt64
stream.writeInt8
stream.writeString
stream.writeUInt16
stream.writeUInt32
stream.writeUInt64
stream.writeUInt8

Time Functions

gta.time.hour
gta.time.minute
gta.time.second

Timer Functions

clearImmediate
clearInterval
clearTimeout
setImmediate
setInterval
setTimeout

Train Functions

train.derailed
train.headlights
train.speed
train.taillights
train.track
train.trackPosition

Transformable Functions

transformable.children
transformable.dimension
transformable.getData
transformable.getRotation
transformable.id
transformable.isType
transformable.name
transformable.onAllDimensions
transformable.parent
transformable.position
transformable.removeAllData
transformable.removeData
transformable.resource
transformable.setData
transformable.setRotation
transformable.setSyncer
transformable.syncer
transformable.type

Vec2 Functions

vec2.addPolar
vec2.cartesianToPolar
vec2.extrapolate
vec2.interpolate
vec2.sphericalExtrapolate
vec2.sphericalInterpolate
vec2.x
vec2.y

Vec3 Functions

vec3.absDotProduct
vec3.addPolar
vec3.addSpherical
vec3.cartesianToPolar
vec3.cartesianToSpherical
vec3.crossProduct
vec3.distance
vec3.dotProduct
vec3.extrapolate
vec3.interpolate
vec3.length
vec3.midPoint
vec3.normalise
vec3.sphericalExtrapolate
vec3.sphericalInterpolate
vec3.squaredDistance
vec3.squaredLength
vec3.x
vec3.y
vec3.z

Vehicle Functions

gta.createVehicle

vehicle.children
vehicle.colour1
vehicle.colour2
vehicle.colour3
vehicle.colour4
vehicle.dimension
vehicle.engine
vehicle.fix
vehicle.getData
vehicle.getRotation
vehicle.heading
vehicle.id
vehicle.interior
vehicle.isType
vehicle.locked
vehicle.matrix
vehicle.modelIndex
vehicle.name
vehicle.onAllDimensions
vehicle.parent
vehicle.position
vehicle.randomiseColours
vehicle.removeAllData
vehicle.removeData
vehicle.resource
vehicle.setColours
vehicle.setData
vehicle.setRGBColours
vehicle.setRotation
vehicle.setSyncer
vehicle.strongGrip
vehicle.syncer
vehicle.type

Weather Functions

gta.forceWeather
gta.weather

World Functions

addToWorld
gta.ssvBridgeEnabled

XML Functions

xmlDocument.load
xmlDocument.rootElement

xmlElement.attributes
xmlElement.children
xmlElement.childrenCount
xmlElement.clear
xmlElement.getBoolAttribute
xmlElement.getFloatAttribute
xmlElement.getIntegerAttribute
xmlElement.getStringAttribute
xmlElement.name
xmlElement.parent
xmlElement.text