The Lab
ENTITY native

_GET_ENTITY_ALBEDO

returns BOOL2 paramsbuild 1207

Writes the albedo texture hash of the entity to albedoHash. Returns true on success.

Signature

C
BOOL _GET_ENTITY_ALBEDO(Entity entity, Hash* albedoHash); // 0x120376C23F019C6C b1207

Parameters

#NameType
1entityEntity
2albedoHashHash* (out pointer)

Facts

Facts about _GET_ENTITY_ALBEDO
Name
_GET_ENTITY_ALBEDO
Hash
0x120376C23F019C6C
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, albedoHash = Citizen.InvokeNative(0x120376C23F019C6C, -- _GET_ENTITY_ALBEDO
  PlayerPedId(), -- Entity entity
  Citizen.PointerValueInt(), -- Hash* albedoHash
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, albedoHash] = Citizen.invokeNative("0x120376C23F019C6C", // _GET_ENTITY_ALBEDO
  PlayerPedId(), // Entity entity
  Citizen.pointerValueInt(), // Hash* albedoHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var albedoHashArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x120376C23F019C6C, // _GET_ENTITY_ALBEDO
  API.PlayerPedId(), // Entity entity
  albedoHashArg // Hash* albedoHash
);
int albedoHash = albedoHashArg.GetResult<int>();
All ENTITY natives

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