_SET_PED_COMBAT_STYLE
Applies the combat style combatStyleHash to ped for duration.
Signature
void _SET_PED_COMBAT_STYLE(Ped ped, Hash combatStyleHash, int p2, float duration); // 0x8ACC0506743A8A5C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | combatStyleHash | Hash |
| 3 | p2 | int |
| 4 | duration | float |
Facts
| Name | _SET_PED_COMBAT_STYLE |
|---|---|
| Hash | 0x8ACC0506743A8A5C |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x8ACC0506743A8A5C, -- _SET_PED_COMBAT_STYLE
PlayerPedId(), -- Ped ped
GetHashKey("name"), -- Hash combatStyleHash
0, -- int p2
0.0 -- float duration
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x8ACC0506743A8A5C", // _SET_PED_COMBAT_STYLE
PlayerPedId(), // Ped ped
GetHashKey("name"), // Hash combatStyleHash
0, // int p2
0.0 // float duration
);Function.Call((Hash)0x8ACC0506743A8A5C, // _SET_PED_COMBAT_STYLE
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("name"), // Hash combatStyleHash
0, // int p2
0.0f // float duration
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.