Template:ServerFunctions: Difference between revisions
From Onset Developer Wiki
No edit summary |
|||
(61 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
===index.lua=== | |||
* [[AddServerScript]] | |||
* [[AddClientScript]] | |||
* [[AddSharedScript]] | |||
* [[AddFile]] | |||
* [[AddWebUIWhitelist]] | |||
* [[GetServerPath]] | |||
* [[GetFilesInDirectory]] | |||
* [[GetDirectoriesInDirectory]] | |||
*[[Base64Encode]] | |||
*[[Base64Decode]] | |||
*[[GetGameVersion]] | |||
*[[GetGameVersionString]] | |||
===Game=== | |||
*[[GetGameVersion]] | |||
*[[GetGameVersionString]] | |||
*[[IsServer]] | |||
*[[IsClient]] | |||
* [[AddWebUIWhitelist]] | |||
===Colors=== | |||
*[[RGBA]] | *[[RGBA]] | ||
*[[RGB]] | *[[RGB]] | ||
*[[HexToRGBA]] | *[[HexToRGBA]] | ||
*[[HexToRGBAFloat]] | |||
===Miscellaneous=== | |||
*[[Random]] | *[[Random]] | ||
*[[RandomFloat]] | *[[RandomFloat]] | ||
*[[Base64Encode]] | *[[Base64Encode]] | ||
*[[Base64Decode]] | *[[Base64Decode]] | ||
*[[GetDistance2D]] | |||
*[[GetDistance3D]] | |||
*[[Lerp]] | |||
*[[LerpVector]] | |||
*[[AddCommand]] | |||
*[[AddFunctionExport]] | |||
* [[GetServerPath]] | |||
* [[GetFilesInDirectory]] | |||
* [[GetDirectoriesInDirectory]] | |||
* [[SteamId64ToSteamId3]] | |||
* [[SteamId3ToSteamId64]] | |||
===Time=== | |||
*[[GetTimeSeconds]] | *[[GetTimeSeconds]] | ||
*[[GetDeltaSeconds]] | *[[GetDeltaSeconds]] | ||
*[[GetTickCount]] | *[[GetTickCount]] | ||
===Server=== | |||
*[[GetServerTickRate]] | *[[GetServerTickRate]] | ||
*[[ServerExit]] | *[[ServerExit]] | ||
Line 16: | Line 55: | ||
*[[GetServerName]] | *[[GetServerName]] | ||
*[[GetMaxPlayers]] | *[[GetMaxPlayers]] | ||
===Explosion=== | |||
*[[CreateExplosion]] | *[[CreateExplosion]] | ||
*[[ | |||
*[[ | ===Door=== | ||
*[[ | *[[IsValidDoor]] | ||
*[[ | *[[CreateDoor]] | ||
*[[ | *[[DestroyDoor]] | ||
*[[ | *[[SetDoorOpen]] | ||
*[[IsDoorOpen]] | |||
*[[GetAllDoors]] | |||
*[[GetDoorCount]] | |||
*[[GetDoorModel]] | |||
*[[SetDoorLocation]] | |||
*[[GetDoorLocation]] | |||
*[[SetDoorDimension]] | |||
*[[GetDoorDimension]] | |||
*[[GetDoorPropertyValue]] | |||
*[[SetDoorPropertyValue]] | |||
===Network=== | |||
*[[GetNetworkStats]] | *[[GetNetworkStats]] | ||
*[[ | |||
===NPC=== | |||
*[[SetNPCRagdoll]] | |||
*[[SetNPCDimension]] | |||
*[[GetNPCDimension]] | |||
*[[SetNPCPropertyValue]] | |||
*[[GetNPCPropertyValue]] | |||
*[[CreateNPC]] | *[[CreateNPC]] | ||
*[[DestroyNPC]] | *[[DestroyNPC]] | ||
Line 33: | Line 90: | ||
*[[GetNPCCount]] | *[[GetNPCCount]] | ||
*[[IsNPCStreamedIn]] | *[[IsNPCStreamedIn]] | ||
*[[SetNPCLocation]] | *[[SetNPCLocation]] | ||
*[[GetNPCLocation]] | *[[GetNPCLocation]] | ||
Line 44: | Line 100: | ||
*[[SetNPCFollowPlayer]] | *[[SetNPCFollowPlayer]] | ||
*[[SetNPCFollowVehicle]] | *[[SetNPCFollowVehicle]] | ||
===Object=== | |||
{{Template:ServerObjectFunctions}} | |||
===Package=== | |||
*[[ImportPackage]] | *[[ImportPackage]] | ||
*[[ | *[[StartPackage]] | ||
*[[StopPackage]] | |||
*[[GetAllPackages]] | |||
*[[GetPackageFiles]] | |||
*[[GetPackageName]] | |||
*[[IsPackageStarted]] | |||
===Event=== | |||
*[[AddEvent]] | *[[AddEvent]] | ||
*[[CallEvent]] | *[[CallEvent]] | ||
*[[AddRemoteEvent]] | *[[AddRemoteEvent]] | ||
*[[ | *[[CallRemoteEvent]] | ||
*[[ | *[[BroadcastRemoteEvent]] | ||
*[[ | |||
===Pickup=== | |||
*[[SetPickupDimension]] | |||
*[[GetPickupDimension]] | |||
*[[SetPickupPropertyValue]] | |||
*[[GetPickupPropertyValue]] | |||
*[[SetPickupVisibleForPlayers]] | |||
*[[GetPickupCount]] | *[[GetPickupCount]] | ||
*[[GetAllPickups]] | *[[GetAllPickups]] | ||
Line 83: | Line 133: | ||
*[[SetPickupScale]] | *[[SetPickupScale]] | ||
*[[GetPickupScale]] | *[[GetPickupScale]] | ||
*[[ | *[[SetPickupVisibility]] | ||
*[[ | *[[SetPickupLocation]] | ||
===Player=== | |||
{{ServerPlayerFunctions}} | |||
===Text3D=== | |||
*[[SetText3DDimension]] | |||
*[[GetText3DDimension]] | |||
*[[SetText3DPropertyValue]] | |||
*[[GetText3DPropertyValue]] | |||
*[[ | |||
*[[ | |||
*[[ | |||
*[[ | |||
*[[GetText3DCount]] | *[[GetText3DCount]] | ||
*[[GetAllText3D]] | *[[GetAllText3D]] | ||
Line 152: | Line 150: | ||
*[[IsValidText3D]] | *[[IsValidText3D]] | ||
*[[SetText3DAttached]] | *[[SetText3DAttached]] | ||
*[[SetText3DVisibility]] | |||
*[[SetText3DText]] | |||
*[[GetText3DText]] | |||
===Timer=== | |||
*[[Delay]] | |||
*[[GetTimerCount]] | *[[GetTimerCount]] | ||
*[[GetAllTimers]] | *[[GetAllTimers]] | ||
Line 161: | Line 165: | ||
*[[UnpauseTimer]] | *[[UnpauseTimer]] | ||
*[[GetTimerRemainingTime]] | *[[GetTimerRemainingTime]] | ||
===Vehicles=== | |||
*[[GetVehicleLicensePlate]] | |||
*[[SetVehicleDimension]] | |||
*[[GetVehicleDimension]] | |||
*[[SetVehiclePropertyValue]] | |||
*[[GetVehiclePropertyValue]] | |||
*[[GetVehicleCount]] | *[[GetVehicleCount]] | ||
*[[GetAllVehicles]] | *[[GetAllVehicles]] | ||
Line 186: | Line 197: | ||
*[[SetVehicleColor]] | *[[SetVehicleColor]] | ||
*[[GetVehicleColor]] | *[[GetVehicleColor]] | ||
*[[SetVehicleLinearVelocity]] | *[[SetVehicleLinearVelocity]] | ||
*[[SetVehicleAngularVelocity]] | *[[SetVehicleAngularVelocity]] | ||
Line 199: | Line 209: | ||
*[[SetVehicleLightEnabled]] | *[[SetVehicleLightEnabled]] | ||
*[[GetVehicleLightState]] | *[[GetVehicleLightState]] | ||
*[[SetVehicleDamage]] | *[[SetVehicleDamage]] | ||
*[[GetVehicleDamage]] | *[[GetVehicleDamage]] | ||
*[[AttachVehicleNitro]] | *[[AttachVehicleNitro]] | ||
*[[ | *[[EnableVehicleBackfire]] | ||
===HTTP=== | |||
{{Template:HttpFunctions}} | |||
Latest revision as of 13:59, 10 November 2021
index.lua
- AddServerScript
- AddClientScript
- AddSharedScript
- AddFile
- AddWebUIWhitelist
- GetServerPath
- GetFilesInDirectory
- GetDirectoriesInDirectory
- Base64Encode
- Base64Decode
- GetGameVersion
- GetGameVersionString
Game
Colors
Miscellaneous
- Random
- RandomFloat
- Base64Encode
- Base64Decode
- GetDistance2D
- GetDistance3D
- Lerp
- LerpVector
- AddCommand
- AddFunctionExport
- GetServerPath
- GetFilesInDirectory
- GetDirectoriesInDirectory
- SteamId64ToSteamId3
- SteamId3ToSteamId64
Time
Server
Explosion
Door
- IsValidDoor
- CreateDoor
- DestroyDoor
- SetDoorOpen
- IsDoorOpen
- GetAllDoors
- GetDoorCount
- GetDoorModel
- SetDoorLocation
- GetDoorLocation
- SetDoorDimension
- GetDoorDimension
- GetDoorPropertyValue
- SetDoorPropertyValue
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
- SetObjectModel
- GetObjectModel
- IsObjectStreamedIn
- EnableObjectStreamEvents
- SetObjectStreamDistance
- SetObjectLocation
- GetObjectLocation
- SetObjectRotation
- GetObjectRotation
- SetObjectScale
- GetObjectScale
- SetObjectAttached
- SetObjectDetached
- IsObjectAttached
- GetObjectAttachmentInfo
- IsObjectMoving
- SetObjectMoveTo
- StopObjectMove
- SetObjectRotateAxis
- GetAllObjects
Package
- ImportPackage
- StartPackage
- StopPackage
- GetAllPackages
- GetPackageFiles
- GetPackageName
- IsPackageStarted
Event
Pickup
- SetPickupDimension
- GetPickupDimension
- SetPickupPropertyValue
- GetPickupPropertyValue
- SetPickupVisibleForPlayers
- GetPickupCount
- GetAllPickups
- CreatePickup
- DestroyPickup
- IsValidPickup
- SetPickupScale
- GetPickupScale
- SetPickupVisibility
- SetPickupLocation
Player
- GetPlayerBySteamId
- SetPlayerRagdoll
- SetPlayerDimension
- GetPlayerDimension
- SetPlayerPropertyValue
- GetPlayerPropertyValue
- IsValidPlayer
- GetPlayerCount
- GetAllPlayers
- GetNearestPlayer2D
- GetPlayersInRange2D
- GetPlayersInRange3D
- GetStreamedPlayersForPlayer
- SetPlayerName
- GetPlayerName
- GetPlayerSteamId
- GetPlayerNetworkStats
- SetPlayerSpawnLocation
- IsPlayerStreamedIn
- SetPlayerVoiceRange
- SetPlayerVoiceChannel
- IsPlayerVoiceChannel
- SetPlayerVoiceEnabled
- IsPlayerVoiceEnabled
- IsPlayerTalking
- 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
- GetText3DText
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
- SetVehicleDamage
- GetVehicleDamage
- AttachVehicleNitro
- EnableVehicleBackfire
HTTP
- url_encode
- http_count
- http_get_all
- http_is_valid
- http_create
- http_destroy
- http_is_error
- http_result_error
- http_result_body
- http_result_header
- http_result_status
- http_set_protocol
- http_set_resolver_protocol
- http_set_host
- http_set_port
- http_set_target
- http_set_verb
- http_set_timeout
- http_set_verifymode
- http_set_version
- http_set_keepalive
- http_set_field
- http_set_body
- http_send