SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
Permanently overrides the loot table of the entity with lootTable. Returns true on success.
Signature
BOOL SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT(Entity entity, Hash lootTable); // 0x8C03CD6B5E0E85E8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | lootTable | Hash |
Facts
| Name | SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT |
|---|---|
| Hash | 0x8C03CD6B5E0E85E8 |
| 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(0x8C03CD6B5E0E85E8, -- SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
PlayerPedId(), -- Entity entity
GetHashKey("name") -- Hash lootTable
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x8C03CD6B5E0E85E8", // SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
PlayerPedId(), // Entity entity
GetHashKey("name"), // Hash lootTable
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x8C03CD6B5E0E85E8, // SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
API.PlayerPedId(), // Entity entity
(uint)API.GetHashKey("name") // Hash lootTable
);Related ENTITY natives
- _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_NO_COLLISION_ENTITY
- _GET_ENTITY_SCRIPT
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _REQUEST_ENTITY_LOOT_LIST
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- DOES_ENTITY_BELONG_TO_THIS_SCRIPT
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.