GetPlayerFromServerId — RedM Natives
0x344EA166 · CFX · client
Gets a local client's Player ID from its server ID counterpart, assuming the passed serverId exists on the client. If no matching client is found, or an invalid value is passed over as the serverId native's parameter, the native result will be -1. It's worth noting that this native method can only retrieve information about clients that are culled to the connected client.
Parameters
| Name | Type | Description |
|---|---|---|
| serverId | int | The player's server ID. |
Returns
Player