The Lab
ENTITY native

SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT

returns BOOL2 paramsbuild 1207

Permanently overrides the loot table of the entity with lootTable. Returns true on success.

Signature

C
BOOL SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT(Entity entity, Hash lootTable); // 0x8C03CD6B5E0E85E8 b1207

Parameters

#NameType
1entityEntity
2lootTableHash

Facts

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

Lua
local result = Citizen.InvokeNative(0x8C03CD6B5E0E85E8, -- SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
  PlayerPedId(), -- Entity entity
  GetHashKey("name") -- Hash lootTable
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x8C03CD6B5E0E85E8", // SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
  PlayerPedId(), // Entity entity
  GetHashKey("name"), // Hash lootTable
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x8C03CD6B5E0E85E8, // SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
  API.PlayerPedId(), // Entity entity
  (uint)API.GetHashKey("name") // Hash lootTable
);
All ENTITY natives

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