_GET_ENTITY_ALBEDO
Writes the albedo texture hash of the entity to albedoHash. Returns true on success.
Signature
BOOL _GET_ENTITY_ALBEDO(Entity entity, Hash* albedoHash); // 0x120376C23F019C6C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | albedoHash | Hash* (out pointer) |
Facts
| 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.
local result, albedoHash = Citizen.InvokeNative(0x120376C23F019C6C, -- _GET_ENTITY_ALBEDO
PlayerPedId(), -- Entity entity
Citizen.PointerValueInt(), -- Hash* albedoHash
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, albedoHash] = Citizen.invokeNative("0x120376C23F019C6C", // _GET_ENTITY_ALBEDO
PlayerPedId(), // Entity entity
Citizen.pointerValueInt(), // Hash* albedoHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}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>();Related ENTITY natives
- _GET_ENTITY_ANIM_CURRENT_TIME
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _GET_ENTITY_BY_DOORHASH
- _GET_ENTITY_CAN_BE_DAMAGED
- _GET_ENTITY_CARRY_CONFIG
- _GET_ENTITY_CARRYING_FLAG
- _GET_ENTITY_COLLISION_INTENSITY
- _GET_ENTITY_FORWARD_VECTOR_YX
- _GET_ENTITY_HEALTH_FLOAT
- _GET_ENTITY_PROOFS
- _GET_ENTITY_SCRIPT
- _GET_ENTITY_THREAT_TIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.