GET_PLAYER_SERVER_ID
Signature
int GET_PLAYER_SERVER_ID(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns int
Usage
local retval = GetPlayerServerId(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4d97bcc7, player, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPlayerServerId(player);
// by hash
const retval = Citizen.invokeNative('0x4d97bcc7', player, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x4d97bcc7, player);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.