NetworkPlayerIsRockstarDev
Docslocal retval = NetworkPlayerIsRockstarDev(player)Description
Checks if a specific value (BYTE) in CPlayerInfo is nonzero.
Returns always false in Singleplayer.
No longer used for dev checks since first mods were released on PS3 & 360.
R* now checks with the is_dlc_present native for the dlc hash 2532323046,
if that is present it will unlock dev stuff.
Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Quick Snippet: Get Playerplayer
playerUse 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
BOOLReturns TRUE (1) or FALSE (0).