The Lab
NETWORK native

_NETWORK_PERSONA_PHOTO_WRITE_LOCAL

returns BOOL4 paramsbuild 1207

Writes the given texture to the local persona photo cache for the player slot. Returns true on success.

Signature

C
BOOL _NETWORK_PERSONA_PHOTO_WRITE_LOCAL(const char* texture, int playerSlot, int p2, int personaPhotoLocalCacheType); // 0x2A48D9567940598F b1207

Parameters

#NameType
1textureconst char*
2playerSlotint
3p2int
4personaPhotoLocalCacheTypeint

Facts

Facts about _NETWORK_PERSONA_PHOTO_WRITE_LOCAL
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.

Lua
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
  -- ...
end
JavaScript
const 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) {
  // ...
}
C#
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
);
All NETWORK natives

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