Template:ServerFunctions: Difference between revisions

From Onset Developer Wiki
No edit summary
 
(60 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]]
*[[GetGameVersion]]
 
*[[GetGameVersionString]]
===Server===
*[[GetServerTickRate]]
*[[GetServerTickRate]]
*[[ServerExit]]
*[[ServerExit]]
Line 16: Line 55:
*[[GetServerName]]
*[[GetServerName]]
*[[GetMaxPlayers]]
*[[GetMaxPlayers]]
*[[GetDistance2D]]
 
*[[GetDistance3D]]
===Explosion===
*[[CreateExplosion]]
*[[CreateExplosion]]
*[[GetLightCount]]
 
*[[GetAllLights]]
===Door===
*[[CreateLight]]
*[[IsValidDoor]]
*[[DestroyLight]]
*[[CreateDoor]]
*[[IsValidLight]]
*[[DestroyDoor]]
*[[CancelConnectionRequest]]
*[[SetDoorOpen]]
*[[IsDoorOpen]]
*[[GetAllDoors]]
*[[GetDoorCount]]
*[[GetDoorModel]]
*[[SetDoorLocation]]
*[[GetDoorLocation]]
*[[SetDoorDimension]]
*[[GetDoorDimension]]
*[[GetDoorPropertyValue]]
*[[SetDoorPropertyValue]]
 
===Network===
*[[GetNetworkStats]]
*[[GetNetworkStats]]
*[[DumpNetworkStats]]
 
===NPC===
*[[SetNPCRagdoll]]
*[[SetNPCDimension]]
*[[GetNPCDimension]]
*[[SetNPCPropertyValue]]
*[[GetNPCPropertyValue]]
*[[CreateNPC]]
*[[CreateNPC]]
*[[DestroyNPC]]
*[[DestroyNPC]]
Line 33: Line 90:
*[[GetNPCCount]]
*[[GetNPCCount]]
*[[IsNPCStreamedIn]]
*[[IsNPCStreamedIn]]
*[[GetNPCModel]]
*[[SetNPCLocation]]
*[[SetNPCLocation]]
*[[GetNPCLocation]]
*[[GetNPCLocation]]
Line 44: Line 100:
*[[SetNPCFollowPlayer]]
*[[SetNPCFollowPlayer]]
*[[SetNPCFollowVehicle]]
*[[SetNPCFollowVehicle]]
*[[CreateObject]]
 
*[[DestroyObject]]
===Object===
*[[IsValidObject]]
{{Template:ServerObjectFunctions}}
*[[GetObjectCount]]
 
*[[GetObjectModel]]
===Package===
*[[IsObjectStreamedIn]]
*[[SetObjectStreamDistance]]
*[[SetObjectLocation]]
*[[GetObjectLocation]]
*[[SetObjectRotation]]
*[[GetObjectRotation]]
*[[SetObjectScale]]
*[[GetObjectScale]]
*[[SetObjectAttached]]
*[[SetObjectDetached]]
*[[IsObjectAttached]]
*[[GetObjectAttachmentInfo]]
*[[IsObjectMoving]]
*[[SetObjectMoveTo]]
*[[StopObjectMove]]
*[[SetObjectRotateAxis]]
*[[SetObjectColor]]
*[[SetObjectTexture]]
*[[SetObjectAnimatedTexture]]
*[[ImportPackage]]
*[[ImportPackage]]
*[[AddFunctionExport]]
*[[StartPackage]]
*[[StopPackage]]
*[[GetAllPackages]]
*[[GetPackageFiles]]
*[[GetPackageName]]
*[[IsPackageStarted]]
 
===Event===
*[[AddEvent]]
*[[AddEvent]]
*[[CallEvent]]
*[[CallEvent]]
*[[AddRemoteEvent]]
*[[AddRemoteEvent]]
*[[AddCommand]]
*[[CallRemoteEvent]]
*[[GetAllPackages]]
*[[BroadcastRemoteEvent]]
*[[GetPackageName]]
 
===Pickup===
*[[SetPickupDimension]]
*[[GetPickupDimension]]
*[[SetPickupPropertyValue]]
*[[GetPickupPropertyValue]]
*[[SetPickupVisibleForPlayers]]
*[[GetPickupCount]]
*[[GetPickupCount]]
*[[GetAllPickups]]
*[[GetAllPickups]]
Line 83: Line 133:
*[[SetPickupScale]]
*[[SetPickupScale]]
*[[GetPickupScale]]
*[[GetPickupScale]]
*[[IsValidPlayer]]
*[[SetPickupVisibility]]
*[[CallRemoteEvent]]
*[[SetPickupLocation]]
*[[GetPlayerCount]]
 
*[[GetAllPlayers]]
===Player===
*[[GetNearestPlayer2D]]
{{ServerPlayerFunctions}}
*[[GetPlayersInRange2D]]
 
*[[GetPlayersInRange3D]]
===Text3D===
*[[GetStreamedPlayersForPlayer]]
*[[SetText3DDimension]]
*[[SetPlayerName]]
*[[GetText3DDimension]]
*[[GetPlayerName]]
*[[SetText3DPropertyValue]]
*[[GetPlayerSteamId]]
*[[GetText3DPropertyValue]]
*[[GetPlayerNetworkStats]]
*[[SetPlayerSpawnLocation]]
*[[IsPlayerStreamedIn]]
*[[SetPlayerVoiceEnabled]]
*[[IsPlayerVoiceEnabled]]
*[[IsPlayerTalking]]
*[[AddPlayerChat]]
*[[AddPlayerChatRange]]
*[[AddPlayerChatAll]]
*[[GetPlayerState]]
*[[GetPlayerMovementMode]]
*[[GetPlayerMovementSpeed]]
*[[IsPlayerAiming]]
*[[IsPlayerReloading]]
*[[GetPlayerVehicle]]
*[[GetPlayerVehicleSeat]]
*[[SetPlayerInVehicle]]
*[[RemovePlayerFromVehicle]]
*[[SetPlayerLocation]]
*[[GetPlayerLocation]]
*[[SetPlayerWeaponStat]]
*[[SetPlayerWeapon]]
*[[GetPlayerWeapon]]
*[[GetPlayerEquippedWeaponSlot]]
*[[EquipPlayerWeaponSlot]]
*[[GetPlayerEquippedWeapon]]
*[[CancelPlayerWeaponShot]]
*[[CancelChatCommand]]
*[[SetPlayerHeading]]
*[[GetPlayerHeading]]
*[[SetPlayerSpectate]]
*[[ResetPlayerCamera]]
*[[IsPlayerDead]]
*[[SetPlayerHealth]]
*[[GetPlayerHealth]]
*[[SetPlayerArmor]]
*[[GetPlayerArmor]]
*[[SetPlayerRespawnTime]]
*[[GetPlayerRespawnTime]]
*[[SetPlayerModel]]
*[[GetPlayerModel]]
*[[GetPlayerIP]]
*[[GetPlayerPing]]
*[[KickPlayer]]
*[[GetPlayerLocale]]
*[[GetPlayerGUID]]
*[[GetPlayerGameVersion]]
*[[SetPlayerAnimation]]
*[[AttachPlayerParachute]]
*[[SetPlayerHeadSize]]
*[[GetPlayerHeadSize]]
*[[GetText3DCount]]
*[[GetText3DCount]]
*[[GetAllText3D]]
*[[GetAllText3D]]
Line 151: Line 150:
*[[IsValidText3D]]
*[[IsValidText3D]]
*[[SetText3DAttached]]
*[[SetText3DAttached]]
*[[SetText3DVisibility]]
*[[SetText3DText]]
*[[GetText3DText]]
===Timer===
*[[Delay]]
*[[GetTimerCount]]
*[[GetTimerCount]]
*[[GetAllTimers]]
*[[GetAllTimers]]
Line 160: Line 165:
*[[UnpauseTimer]]
*[[UnpauseTimer]]
*[[GetTimerRemainingTime]]
*[[GetTimerRemainingTime]]
===Vehicles===
*[[GetVehicleLicensePlate]]
*[[SetVehicleDimension]]
*[[GetVehicleDimension]]
*[[SetVehiclePropertyValue]]
*[[GetVehiclePropertyValue]]
*[[GetVehicleCount]]
*[[GetVehicleCount]]
*[[GetAllVehicles]]
*[[GetAllVehicles]]
Line 185: Line 197:
*[[SetVehicleColor]]
*[[SetVehicleColor]]
*[[GetVehicleColor]]
*[[GetVehicleColor]]
*[[GetVehicleInteriorColor]]
*[[SetVehicleLinearVelocity]]
*[[SetVehicleLinearVelocity]]
*[[SetVehicleAngularVelocity]]
*[[SetVehicleAngularVelocity]]
Line 198: Line 209:
*[[SetVehicleLightEnabled]]
*[[SetVehicleLightEnabled]]
*[[GetVehicleLightState]]
*[[GetVehicleLightState]]
*[[GetVehicleLightColor]]
*[[SetVehicleDamage]]
*[[SetVehicleDamage]]
*[[GetVehicleDamage]]
*[[GetVehicleDamage]]
*[[AttachVehicleNitro]]
*[[AttachVehicleNitro]]
*[[SetPlayerDimension]]
*[[EnableVehicleBackfire]]
*[[SetVehicleDimension]]
 
*[[SetObjectDimension]]
===HTTP===
*[[SetLightDimension]]
{{Template:HttpFunctions}}
*[[SetPickupDimension]]
*[[SetText3DDimension]]
*[[SetNPCDimension]]
*[[GetPlayerDimension]]
*[[GetVehicleDimension]]
*[[GetObjectDimension]]
*[[GetLightDimension]]
*[[GetPickupDimension]]
*[[GetText3DDimension]]
*[[GetNPCDimension]]
*[[SetPlayerPropertyValue]]
*[[GetPlayerPropertyValue]]
*[[SetVehiclePropertyValue]]
*[[GetVehiclePropertyValue]]
*[[SetObjectPropertyValue]]
*[[GetObjectPropertyValue]]
*[[SetNPCPropertyValue]]
*[[GetNPCPropertyValue]]
*[[SetText3DPropertyValue]]
*[[GetText3DPropertyValue]]
*[[SetPickupPropertyValue]]
*[[GetPickupPropertyValue]]

Latest revision as of 13:59, 10 November 2021

index.lua

Game

Colors

Miscellaneous

Time

Server

Explosion

Door

Network

NPC

Object

Package

Event

Pickup

Player

Text3D

Timer

Vehicles

HTTP