_NETWORK_PERSONA_PHOTO_WRITE_LOCAL
Writes the given texture to the local persona photo cache for the player slot. Returns true on success.
Signature
BOOL _NETWORK_PERSONA_PHOTO_WRITE_LOCAL(const char* texture, int playerSlot, int p2, int personaPhotoLocalCacheType); // 0x2A48D9567940598F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | texture | const char* |
| 2 | playerSlot | int |
| 3 | p2 | int |
| 4 | personaPhotoLocalCacheType | int |
Facts
| Name | _NETWORK_PERSONA_PHOTO_WRITE_LOCAL |
|---|---|
| Hash | 0x2A48D9567940598F |
| 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(0x2A48D9567940598F, -- _NETWORK_PERSONA_PHOTO_WRITE_LOCAL
"text", -- const char* texture
0, -- int playerSlot
0, -- int p2
0 -- int personaPhotoLocalCacheType
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x2A48D9567940598F", // _NETWORK_PERSONA_PHOTO_WRITE_LOCAL
"text", // const char* texture
0, // int playerSlot
0, // int p2
0, // int personaPhotoLocalCacheType
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x2A48D9567940598F, // _NETWORK_PERSONA_PHOTO_WRITE_LOCAL
"text", // const char* texture
0, // int playerSlot
0, // int p2
0 // int personaPhotoLocalCacheType
);Related NETWORK natives
- _NETWORK_PERSONA_PHOTO_WRITE_SC_PROFILE
- _NETWORK_GET_PLAYER_OWNER_OF_NETWORK_ID
- _NETWORK_RESURRECT_LOCAL_PLAYER_2
- _NETWORK_ADD_PLAYER_TO_RECENT_GAMERS_LIST
- _NETWORK_ALERT
- _NETWORK_ARE_ONLINE_NOTIFICATIONS_SHOWN_IN_STORY_MODE
- _NETWORK_ARE_PLAYERS_IN_SAME_PLATFORM_PARTY
- _NETWORK_AUTO_SESSION_IS_AUTO_WARP_DISABLED
- _NETWORK_AUTO_SESSION_IS_INSTANCED_SESSION
- _NETWORK_AUTO_SESSION_IS_PROCESSING_SESSION_SPLIT
- _NETWORK_AUTO_SESSION_SET_ALLOWED_TO_MERGE
- _NETWORK_AUTO_SESSION_SET_ALLOWED_TO_SPLIT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.