Template:ServerFunctions: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Game | ===Game=== | ||
*[[GetGameVersion]] | *[[GetGameVersion]] | ||
*[[GetGameVersionString]] | *[[GetGameVersionString]] | ||
Colors | |||
===Colors=== | |||
*[[RGBA]] | *[[RGBA]] | ||
*[[RGB]] | *[[RGB]] | ||
*[[HexToRGBA]] | *[[HexToRGBA]] | ||
*[[HexToRGBAFloat]] | *[[HexToRGBAFloat]] | ||
Miscellaneous | |||
===Miscellaneous=== | |||
*[[Random]] | *[[Random]] | ||
*[[RandomFloat]] | *[[RandomFloat]] | ||
Line 20: | Line 20: | ||
*[[AddCommand]] | *[[AddCommand]] | ||
*[[AddFunctionExport]] | *[[AddFunctionExport]] | ||
Time | |||
===Time=== | |||
*[[GetTimeSeconds]] | *[[GetTimeSeconds]] | ||
*[[GetDeltaSeconds]] | *[[GetDeltaSeconds]] | ||
*[[GetTickCount]] | *[[GetTickCount]] | ||
Server | |||
===Server=== | |||
*[[GetServerTickRate]] | *[[GetServerTickRate]] | ||
*[[ServerExit]] | *[[ServerExit]] | ||
Line 32: | Line 32: | ||
*[[GetServerName]] | *[[GetServerName]] | ||
*[[GetMaxPlayers]] | *[[GetMaxPlayers]] | ||
Explosion | |||
===Explosion=== | |||
*[[CreateExplosion]] | *[[CreateExplosion]] | ||
Door | |||
===Door=== | |||
*[[IsValidDoor]] | *[[IsValidDoor]] | ||
*[[CreateDoor]] | *[[CreateDoor]] | ||
Line 49: | Line 49: | ||
*[[SetDoorDimension]] | *[[SetDoorDimension]] | ||
*[[GetDoorDimension]] | *[[GetDoorDimension]] | ||
Network | |||
===Network=== | |||
*[[GetNetworkStats]] | *[[GetNetworkStats]] | ||
*[[DumpNetworkStats]] | *[[DumpNetworkStats]] | ||
NPC | |||
===NPC=== | |||
*[[SetNPCRagdoll]] | *[[SetNPCRagdoll]] | ||
*[[SetNPCDimension]] | *[[SetNPCDimension]] | ||
Line 77: | Line 77: | ||
*[[SetNPCFollowVehicle]] | *[[SetNPCFollowVehicle]] | ||
Object | ===Object=== | ||
*[[SetObjectDimension]] | *[[SetObjectDimension]] | ||
*[[GetObjectDimension]] | *[[GetObjectDimension]] | ||
Line 105: | Line 104: | ||
*[[SetObjectRotateAxis]] | *[[SetObjectRotateAxis]] | ||
Package | ===Package=== | ||
*[[ImportPackage]] | *[[ImportPackage]] | ||
*[[StartPackage]] | *[[StartPackage]] | ||
Line 113: | Line 111: | ||
*[[GetPackageName]] | *[[GetPackageName]] | ||
*[[IsPackageStarted]] | *[[IsPackageStarted]] | ||
Event | |||
===Event=== | |||
*[[AddEvent]] | *[[AddEvent]] | ||
*[[CallEvent]] | *[[CallEvent]] | ||
*[[AddRemoteEvent]] | *[[AddRemoteEvent]] | ||
*[[CallRemoteEvent]] | *[[CallRemoteEvent]] | ||
Pickup | |||
===Pickup=== | |||
*[[SetPickupDimension]] | *[[SetPickupDimension]] | ||
*[[GetPickupDimension]] | *[[GetPickupDimension]] | ||
Line 135: | Line 133: | ||
*[[SetPickupVisibility]] | *[[SetPickupVisibility]] | ||
Player | ===Player=== | ||
*[[SetPlayerRagdoll]] | *[[SetPlayerRagdoll]] | ||
*[[SetPlayerDimension]] | *[[SetPlayerDimension]] | ||
Line 200: | Line 197: | ||
*[[GetPlayerHeadSize]] | *[[GetPlayerHeadSize]] | ||
Text3D | ===Text3D=== | ||
*[[SetText3DDimension]] | *[[SetText3DDimension]] | ||
*[[GetText3DDimension]] | *[[GetText3DDimension]] | ||
Line 215: | Line 211: | ||
*[[SetText3DText]] | *[[SetText3DText]] | ||
Timer | ===Timer=== | ||
*[[Delay]] | *[[Delay]] | ||
*[[GetTimerCount]] | *[[GetTimerCount]] | ||
Line 227: | Line 222: | ||
*[[UnpauseTimer]] | *[[UnpauseTimer]] | ||
*[[GetTimerRemainingTime]] | *[[GetTimerRemainingTime]] | ||
Vehicles | |||
===Vehicles=== | |||
*[[GetVehicleLicensePlate]] | *[[GetVehicleLicensePlate]] | ||
*[[SetVehicleDimension]] | *[[SetVehicleDimension]] |
Revision as of 17:37, 16 January 2020
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
- SetNPCRagdoll
- 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
- SetPlayerRagdoll
- 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
- 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
- SetText3DText
Timer
- Delay
- GetTimerCount
- GetAllTimers
- IsValidTimer
- CreateTimer
- CreateCountTimer
- DestroyTimer
- PauseTimer
- UnpauseTimer
- GetTimerRemainingTime
Vehicles
- GetVehicleLicensePlate
- 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