_GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
Writes the loot table permanently set on the entity by script to lootTable. Returns true if one is set.
Signature
BOOL _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT(Entity entity, Hash* lootTable); // 0x1E804EA9B12030A4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | lootTable | Hash* (out pointer) |
Facts
| Name | _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT |
|---|---|
| Hash | 0x1E804EA9B12030A4 |
| 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, lootTable = Citizen.InvokeNative(0x1E804EA9B12030A4, -- _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
PlayerPedId(), -- Entity entity
Citizen.PointerValueInt(), -- Hash* lootTable
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, lootTable] = Citizen.invokeNative("0x1E804EA9B12030A4", // _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
PlayerPedId(), // Entity entity
Citizen.pointerValueInt(), // Hash* lootTable
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var lootTableArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x1E804EA9B12030A4, // _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
API.PlayerPedId(), // Entity entity
lootTableArg // Hash* lootTable
);
int lootTable = lootTableArg.GetResult<int>();Related ENTITY natives
- SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
- _GET_ENTITY_SCRIPT
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _GET_CARRIABLE_FROM_ENTITY
- _GET_ENTITY_ALBEDO
- _GET_ENTITY_ANIM_CURRENT_TIME
- _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
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.