{"hash":"0x8C03CD6B5E0E85E8","ns":"ENTITY","name":"SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT","slug":"SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT","official":true,"named":true,"luaName":"ScriptOverrideEntityLootTablePermanent","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"entity","type":"Entity"},{"name":"lootTable","type":"Hash"}],"summary":"Sets the loot table an entity will carry.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets the loot table an entity will carry. Returns true if loot table has been successfully set. Returns false if entity is not a ped or object.\nhttps://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT.md","snippets":{"lua":"local retval = ScriptOverrideEntityLootTablePermanent(entity, lootTable)","luaInvoke":"local retval = Citizen.InvokeNative(0x8C03CD6B5E0E85E8, entity, lootTable, Citizen.ReturnResultAnyway())","js":"const retval = ScriptOverrideEntityLootTablePermanent(entity, lootTable);","jsInvoke":"const retval = Citizen.invokeNative('0x8C03CD6B5E0E85E8', entity, lootTable, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x8C03CD6B5E0E85E8, entity, lootTable);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``."]}}