Template:ServerFunctions: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Game == | |||
*[[GetGameVersion]] | |||
*[[GetGameVersionString]] | |||
== Colors == | |||
*[[RGBA]] | *[[RGBA]] | ||
*[[RGB]] | *[[RGB]] | ||
*[[HexToRGBA]] | *[[HexToRGBA]] | ||
== Miscellaneous == | |||
*[[Random]] | *[[Random]] | ||
*[[RandomFloat]] | *[[RandomFloat]] | ||
*[[Base64Encode]] | *[[Base64Encode]] | ||
*[[Base64Decode]] | *[[Base64Decode]] | ||
*[[GetDistance2D]] | |||
*[[GetDistance3D]] | |||
*[[AddCommand]] | |||
*[[AddFunctionExport]] | |||
== Time == | |||
*[[GetTimeSeconds]] | *[[GetTimeSeconds]] | ||
*[[GetDeltaSeconds]] | *[[GetDeltaSeconds]] | ||
*[[GetTickCount]] | *[[GetTickCount]] | ||
== Server == | |||
*[[GetServerTickRate]] | *[[GetServerTickRate]] | ||
*[[ServerExit]] | *[[ServerExit]] | ||
Line 16: | Line 25: | ||
*[[GetServerName]] | *[[GetServerName]] | ||
*[[GetMaxPlayers]] | *[[GetMaxPlayers]] | ||
== Explosion == | |||
*[[CreateExplosion]] | *[[CreateExplosion]] | ||
== Door == | |||
*[[IsValidDoor]] | *[[IsValidDoor]] | ||
*[[CreateDoor]] | *[[CreateDoor]] | ||
Line 31: | Line 40: | ||
*[[SetDoorDimension]] | *[[SetDoorDimension]] | ||
*[[GetDoorDimension]] | *[[GetDoorDimension]] | ||
== Network == | |||
*[[GetNetworkStats]] | *[[GetNetworkStats]] | ||
*[[DumpNetworkStats]] | *[[DumpNetworkStats]] | ||
== NPC == | |||
*[[SetNPCDimension]] | |||
*[[GetNPCDimension]] | |||
*[[SetNPCPropertyValue]] | |||
*[[GetNPCPropertyValue]] | |||
*[[CreateNPC]] | *[[CreateNPC]] | ||
*[[DestroyNPC]] | *[[DestroyNPC]] | ||
Line 49: | Line 64: | ||
*[[SetNPCFollowPlayer]] | *[[SetNPCFollowPlayer]] | ||
*[[SetNPCFollowVehicle]] | *[[SetNPCFollowVehicle]] | ||
== Object == | |||
*[[SetObjectDimension]] | |||
*[[GetObjectDimension]] | |||
*[[SetObjectPropertyValue]] | |||
*[[GetObjectPropertyValue]] | |||
*[[CreateObject]] | *[[CreateObject]] | ||
*[[DestroyObject]] | *[[DestroyObject]] | ||
Line 70: | Line 90: | ||
*[[StopObjectMove]] | *[[StopObjectMove]] | ||
*[[SetObjectRotateAxis]] | *[[SetObjectRotateAxis]] | ||
== Package == | |||
*[[ImportPackage]] | *[[ImportPackage]] | ||
*[[StartPackage]] | *[[StartPackage]] | ||
*[[StopPackage]] | *[[StopPackage]] | ||
Line 81: | Line 97: | ||
*[[GetPackageName]] | *[[GetPackageName]] | ||
*[[IsPackageStarted]] | *[[IsPackageStarted]] | ||
== Event == | |||
*[[AddEvent]] | |||
*[[CallEvent]] | |||
*[[AddRemoteEvent]] | |||
*[[CallRemoteEvent]] | |||
== Pickup == | |||
*[[SetPickupDimension]] | |||
*[[GetPickupDimension]] | |||
*[[SetPickupPropertyValue]] | |||
*[[GetPickupPropertyValue]] | |||
*[[SetPickupVisibleForPlayers]] | *[[SetPickupVisibleForPlayers]] | ||
*[[GetPickupCount]] | *[[GetPickupCount]] | ||
Line 90: | Line 116: | ||
*[[GetPickupScale]] | *[[GetPickupScale]] | ||
*[[SetPickupVisibility]] | *[[SetPickupVisibility]] | ||
== Player == | |||
*[[SetPlayerDimension]] | |||
*[[GetPlayerDimension]] | |||
*[[SetPlayerPropertyValue]] | |||
*[[GetPlayerPropertyValue]] | |||
*[[IsValidPlayer]] | *[[IsValidPlayer]] | ||
*[[GetPlayerCount]] | *[[GetPlayerCount]] | ||
*[[GetAllPlayers]] | *[[GetAllPlayers]] | ||
Line 149: | Line 179: | ||
*[[SetPlayerHeadSize]] | *[[SetPlayerHeadSize]] | ||
*[[GetPlayerHeadSize]] | *[[GetPlayerHeadSize]] | ||
== Text3D == | |||
*[[SetText3DDimension]] | |||
*[[GetText3DDimension]] | |||
*[[SetText3DPropertyValue]] | |||
*[[GetText3DPropertyValue]] | |||
*[[GetText3DCount]] | *[[GetText3DCount]] | ||
*[[GetAllText3D]] | *[[GetAllText3D]] | ||
Line 156: | Line 191: | ||
*[[SetText3DAttached]] | *[[SetText3DAttached]] | ||
*[[SetText3DVisibility]] | *[[SetText3DVisibility]] | ||
== Timer == | |||
*[[Delay]] | |||
*[[GetTimerCount]] | *[[GetTimerCount]] | ||
*[[GetAllTimers]] | *[[GetAllTimers]] | ||
Line 165: | Line 202: | ||
*[[UnpauseTimer]] | *[[UnpauseTimer]] | ||
*[[GetTimerRemainingTime]] | *[[GetTimerRemainingTime]] | ||
== Vehicles == | |||
*[[SetVehicleDimension]] | |||
*[[GetVehicleDimension]] | |||
*[[SetVehiclePropertyValue]] | |||
*[[GetVehiclePropertyValue]] | |||
*[[GetVehicleCount]] | *[[GetVehicleCount]] | ||
*[[GetAllVehicles]] | *[[GetAllVehicles]] | ||
Line 206: | Line 248: | ||
*[[GetVehicleDamage]] | *[[GetVehicleDamage]] | ||
*[[AttachVehicleNitro]] | *[[AttachVehicleNitro]] | ||
Revision as of 05:26, 4 December 2019
Game
Colors
Miscellaneous
- Random
- RandomFloat
- Base64Encode
- Base64Decode
- GetDistance2D
- GetDistance3D
- AddCommand
- AddFunctionExport
Time
Server
Explosion
Door
- IsValidDoor
- CreateDoor
- DestroyDoor
- SetDoorOpen
- IsDoorOpen
- GetAllDoors
- GetDoorCount
- GetDoorModel
- SetDoorLocation
- GetDoorLocation
- SetDoorDimension
- GetDoorDimension
Network
NPC
- SetNPCDimension
- GetNPCDimension
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
Object
- SetObjectDimension
- GetObjectDimension
- SetObjectPropertyValue
- GetObjectPropertyValue
- CreateObject
- DestroyObject
- IsValidObject
- GetObjectCount
- GetObjectModel
- IsObjectStreamedIn
- SetObjectStreamDistance
- SetObjectLocation
- GetObjectLocation
- SetObjectRotation
- GetObjectRotation
- SetObjectScale
- GetObjectScale
- SetObjectAttached
- SetObjectDetached
- IsObjectAttached
- GetObjectAttachmentInfo
- IsObjectMoving
- SetObjectMoveTo
- StopObjectMove
- SetObjectRotateAxis
Package
Event
Pickup
- SetPickupDimension
- GetPickupDimension
- SetPickupPropertyValue
- GetPickupPropertyValue
- SetPickupVisibleForPlayers
- GetPickupCount
- GetAllPickups
- CreatePickup
- DestroyPickup
- IsValidPickup
- SetPickupScale
- GetPickupScale
- SetPickupVisibility
Player
- SetPlayerDimension
- GetPlayerDimension
- SetPlayerPropertyValue
- GetPlayerPropertyValue
- IsValidPlayer
- GetPlayerCount
- GetAllPlayers
- GetNearestPlayer2D
- GetPlayersInRange2D
- GetPlayersInRange3D
- GetStreamedPlayersForPlayer
- SetPlayerName
- GetPlayerName
- GetPlayerSteamId
- GetPlayerNetworkStats
- SetPlayerSpawnLocation
- IsPlayerStreamedIn
- SetPlayerVoiceEnabled
- IsPlayerVoiceEnabled
- IsPlayerTalking
- SetPlayerVoiceDimension
- AddPlayerChat
- AddPlayerChatRange
- AddPlayerChatAll
- GetPlayerState
- GetPlayerMovementMode
- GetPlayerMovementSpeed
- IsPlayerAiming
- IsPlayerReloading
- GetVehicleLicensePlate
- GetPlayerVehicle
- GetPlayerVehicleSeat
- SetPlayerInVehicle
- RemovePlayerFromVehicle
- SetPlayerLocation
- GetPlayerLocation
- SetPlayerWeaponStat
- SetPlayerWeapon
- GetPlayerWeapon
- GetPlayerEquippedWeaponSlot
- EquipPlayerWeaponSlot
- GetPlayerEquippedWeapon
- SetPlayerHeading
- GetPlayerHeading
- SetPlayerSpectate
- IsPlayerDead
- SetPlayerHealth
- GetPlayerHealth
- SetPlayerArmor
- GetPlayerArmor
- SetPlayerRespawnTime
- GetPlayerRespawnTime
- GetPlayerIP
- GetPlayerPing
- KickPlayer
- GetPlayerLocale
- GetPlayerGUID
- GetPlayerGameVersion
- SetPlayerAnimation
- AttachPlayerParachute
- SetPlayerHeadSize
- GetPlayerHeadSize
Text3D
- SetText3DDimension
- GetText3DDimension
- SetText3DPropertyValue
- GetText3DPropertyValue
- GetText3DCount
- GetAllText3D
- CreateText3D
- DestroyText3D
- IsValidText3D
- SetText3DAttached
- SetText3DVisibility
Timer
- Delay
- GetTimerCount
- GetAllTimers
- IsValidTimer
- CreateTimer
- CreateCountTimer
- DestroyTimer
- PauseTimer
- UnpauseTimer
- GetTimerRemainingTime
Vehicles
- SetVehicleDimension
- GetVehicleDimension
- SetVehiclePropertyValue
- GetVehiclePropertyValue
- GetVehicleCount
- GetAllVehicles
- GetVehicleModel
- GetVehicleModelName
- SetVehicleRespawnParams
- IsVehicleStreamedIn
- GetStreamedVehiclesForPlayer
- SetVehicleLocation
- GetVehicleLocation
- SetVehicleRotation
- GetVehicleRotation
- SetVehicleHeading
- GetVehicleHeading
- SetVehicleHealth
- GetVehicleHealth
- SetVehicleLicensePlate
- GetVehicleVelocity
- CreateVehicle
- DestroyVehicle
- IsValidVehicle
- GetVehicleDriver
- GetVehiclePassenger
- GetVehicleNumberOfSeats
- SetVehicleColor
- GetVehicleColor
- SetVehicleLinearVelocity
- SetVehicleAngularVelocity
- GetVehicleGear
- SetVehicleHoodRatio
- GetVehicleHoodRatio
- SetVehicleTrunkRatio
- GetVehicleTrunkRatio
- StartVehicleEngine
- StopVehicleEngine
- GetVehicleEngineState
- SetVehicleLightEnabled
- GetVehicleLightState
- GetVehicleLightColor
- SetVehicleDamage
- GetVehicleDamage
- AttachVehicleNitro