_0x55FCC0C390620314
Docs0x55fcc0c390620314(player1, player2, toggle)Parameters
| Name | Type | Description |
|---|---|---|
player1 | Player | — |
player2 | Player | — |
toggle | BOOL | — |
Quick Snippet: Get Playerplayer1player2
player1player2Use this to get the local player ID or a target player's server ID.
-- Get the local player index (client-side)
local playerId = PlayerId()
-- Get the local player's server ID (for server events)
local serverId = GetPlayerServerId(playerId)
print("Player ID: " .. playerId)
print("Server ID: " .. serverId)
-- Get player ped from a server ID:
-- local targetPed = GetPlayerPed(GetPlayerFromServerId(targetServerId))Returns
voidThis native does not return a value.