_PEDSHOT_GENERATE_PERSONA_PHOTO
Generates a persona portrait of ped into the texture texture, returning true on success.
Signature
BOOL _PEDSHOT_GENERATE_PERSONA_PHOTO(const char* texture, Ped ped, int playerSlot); // 0xD9C24F53631F2372 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | texture | const char* |
| 2 | ped | Ped |
| 3 | playerSlot | int |
Facts
| 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.
local result = Citizen.InvokeNative(0xD9C24F53631F2372, -- _PEDSHOT_GENERATE_PERSONA_PHOTO
"text", -- const char* texture
PlayerPedId(), -- Ped ped
0 -- int playerSlot
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xD9C24F53631F2372", // _PEDSHOT_GENERATE_PERSONA_PHOTO
"text", // const char* texture
PlayerPedId(), // Ped ped
0, // int playerSlot
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD9C24F53631F2372, // _PEDSHOT_GENERATE_PERSONA_PHOTO
"text", // const char* texture
API.PlayerPedId(), // Ped ped
0 // int playerSlot
);Related GRAPHICS natives
- _PEDSHOT_PREVIOUS_PERSONA_PHOTO_DATA_CLEANUP
- _PEDSHOT_SET_PERSONA_PHOTO_TYPE
- _PEDSHOT_FINISH_CLEANUP_DATA
- _PEDSHOT_INIT_CLEANUP_DATA
- _CHANGE_PHOTO_MODE_CONTRAST
- _CHANGE_PHOTO_MODE_EXPOSURE
- _GENERATE_SWATCH_TEXTURE
- _GENERATE_SWATCH_TEXTURE_DIRECTLY
- _GET_PHOTO_MODE_CONTRAST
- _GET_PHOTO_MODE_EXPOSURE
- _SET_DISTRICT_PHOTO_TAKEN_STAT
- _SET_PHOTO_IN_PHOTOMODE_STAT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.