The Lab
GRAPHICS native

_PEDSHOT_GENERATE_PERSONA_PHOTO

returns BOOL3 paramsbuild 1207

Generates a persona portrait of ped into the texture texture, returning true on success.

Signature

C
BOOL _PEDSHOT_GENERATE_PERSONA_PHOTO(const char* texture, Ped ped, int playerSlot); // 0xD9C24F53631F2372 b1207

Parameters

#NameType
1textureconst char*
2pedPed
3playerSlotint

Facts

Facts about _PEDSHOT_GENERATE_PERSONA_PHOTO
Name
_PEDSHOT_GENERATE_PERSONA_PHOTO
Hash
0xD9C24F53631F2372
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xD9C24F53631F2372, -- _PEDSHOT_GENERATE_PERSONA_PHOTO
  "text", -- const char* texture
  PlayerPedId(), -- Ped ped
  0 -- int playerSlot
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xD9C24F53631F2372", // _PEDSHOT_GENERATE_PERSONA_PHOTO
  "text", // const char* texture
  PlayerPedId(), // Ped ped
  0, // int playerSlot
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xD9C24F53631F2372, // _PEDSHOT_GENERATE_PERSONA_PHOTO
  "text", // const char* texture
  API.PlayerPedId(), // Ped ped
  0 // int playerSlot
);
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.