Server Functions

CREDIT: https://forum.fivereborn.com/topic/2587/wiki-server-functions

ReturnType Function(Arguments)

Void

 * void DropPlayer(int source, string reason)
 * void TempBanPlayer(int source, string reason)
 * void frexp(double x, out double fr, out int exp)
 * void GetFuncRef(Function func, out int reference, out int instance, out string resource)
 * void RegisterServerEvent(string eventName)
 * void TriggerClientEvent(string eventName, int netID, params object[] args)
 * void CancelEvent
 * void SetGameType(string gameType)
 * void SetMapName(string mapName)
 * void Print(params object[] arguments)
 * void RconPrint(string str)
 * void RconLog(LuaTable table)
 * void SetResourceInfo(string key, string value)
 * void AddClientScript(string script)
 * void AddServerScript(string script)
 * void AddAuxFile(string file)
 * void AddResourceDependency(string resource)
 * void RegisterInitHandler(Delegate function)
 * void SetTimeout(int milliseconds, Delegate callback)
 * void AddEventHandler(string eventName, Function eventHandler)
 * void Citizen.CreateThread(Function func)
 * void Citizen.Wait(Int ms)

Bool

 * bool TriggerEvent(string eventName, params object[] args)
 * bool WasEventCanceled
 * bool StopResource(string resourceName)
 * bool StartResource(string resourceName)

LuaTable

 * LuaTable GetPlayers
 * LuaTable GetPlayerIdentifiers(int source)

String

 * string GetPlayerName(int source)
 * string GetPlayerGuid(int source)
 * string GetPlayerEP(int source)

Init

 * int GetPlayerPing(int source)
 * int GetHostId
 * int GetInstanceId

double

 * double GetPlayerLastMsg(int source)
 * double ldexp(double x, int exp)

Task

 * Task PerformHttpRequest(string url, Func cb, string method = "GET", string data = "", LuaTable headers = null)