PLAYER_PED_ID
Returns current player ped
Hash
0x096275889B8E0EE0Runtime name
PlayerPedIdNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD80958FC74E988A6Signature
Ped PLAYER_PED_ID();Returns Ped
Description
Returns current player ped
Usage
local retval = PlayerPedId()
-- always works, by hash
local retval = Citizen.InvokeNative(0x096275889B8E0EE0, Citizen.ResultAsInteger())JavaScript and C#
const retval = PlayerPedId();
// by hash
const retval = Citizen.invokeNative('0x096275889B8E0EE0', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x096275889B8E0EE0);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.