SET_LOOTING_FLAG
Hash
0x6569F31A01B4C097Runtime name
SetLootingFlagNamespacePED
SideClient
NameOfficial
Docs
Since build1207
Signature
void SET_LOOTING_FLAG(Ped ped, int lootFlag, BOOL enabled);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
lootFlag | int | — |
enabled | BOOL | — |
Returns void
Description
https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLootingFlags__Flags
https://github.com/femga/rdr3_discoveries/tree/master/AI/LOOTING_FLAGS
lootFlag:
enum eLootFlag
{
LOOT_FLAG_IS_CRITICAL_LOOT_TARGET = 7,
LOOT_FLAG_IGNORE_WATER_CHECKS = 8,
LOOT_FLAG_ANIMAL_FLAGGED_FOR_TAGGING = 23,
};Usage
SetLootingFlag(ped, lootFlag, enabled)
-- always works, by hash
Citizen.InvokeNative(0x6569F31A01B4C097, ped, lootFlag, enabled)JavaScript and C#
SetLootingFlag(ped, lootFlag, enabled);
// by hash
Citizen.invokeNative('0x6569F31A01B4C097', ped, lootFlag, enabled);Function.Call((Hash)0x6569F31A01B4C097, ped, lootFlag, enabled);Enums and flags
- CLootingFlags__Flags 29 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.