_SET_PED_COMBAT_STYLE_MOD
Applies the combat style modifier combatStyleModHash to ped for duration.
Signature
void _SET_PED_COMBAT_STYLE_MOD(Ped ped, Hash combatStyleModHash, float duration); // 0x8B1E8E35A6E814EA b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | combatStyleModHash | Hash |
| 3 | duration | float |
Facts
| Name | _SET_PED_COMBAT_STYLE_MOD |
|---|---|
| Hash | 0x8B1E8E35A6E814EA |
| 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(0x8B1E8E35A6E814EA, -- _SET_PED_COMBAT_STYLE_MOD
PlayerPedId(), -- Ped ped
GetHashKey("name"), -- Hash combatStyleModHash
0.0 -- float duration
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x8B1E8E35A6E814EA", // _SET_PED_COMBAT_STYLE_MOD
PlayerPedId(), // Ped ped
GetHashKey("name"), // Hash combatStyleModHash
0.0 // float duration
);Function.Call((Hash)0x8B1E8E35A6E814EA, // _SET_PED_COMBAT_STYLE_MOD
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("name"), // Hash combatStyleModHash
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.