The Lab
ENTITY native

_GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT

returns BOOL2 paramsbuild 1207

Writes the loot table permanently set on the entity by script to lootTable. Returns true if one is set.

Signature

C
BOOL _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT(Entity entity, Hash* lootTable); // 0x1E804EA9B12030A4 b1207

Parameters

#NameType
1entityEntity
2lootTableHash* (out pointer)

Facts

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

Lua
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
  -- ...
end
JavaScript
const [result, lootTable] = Citizen.invokeNative("0x1E804EA9B12030A4", // _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
  PlayerPedId(), // Entity entity
  Citizen.pointerValueInt(), // Hash* lootTable
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
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>();
All ENTITY natives

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