The Lab
PED native

_SET_PED_COMBAT_BEHAVIOUR

returns void2 paramsbuild 1207

Sets the combat behaviour behaviour used by ped.

Signature

C
void _SET_PED_COMBAT_BEHAVIOUR(Ped ped, Hash behaviour); // 0x9238A3D970BBB0A9 b1207

Parameters

#NameType
1pedPed
2behaviourHash

Facts

Facts about _SET_PED_COMBAT_BEHAVIOUR
Name
_SET_PED_COMBAT_BEHAVIOUR
Hash
0x9238A3D970BBB0A9
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x9238A3D970BBB0A9, -- _SET_PED_COMBAT_BEHAVIOUR
  PlayerPedId(), -- Ped ped
  GetHashKey("name") -- Hash behaviour
)
JavaScript
Citizen.invokeNative("0x9238A3D970BBB0A9", // _SET_PED_COMBAT_BEHAVIOUR
  PlayerPedId(), // Ped ped
  GetHashKey("name") // Hash behaviour
);
C#
Function.Call((Hash)0x9238A3D970BBB0A9, // _SET_PED_COMBAT_BEHAVIOUR
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash behaviour
);
All PED natives

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