SET_COMBAT_FLOAT
Sets the combat float setting combatType of ped to newValue.
Signature
void SET_COMBAT_FLOAT(Ped ped, int combatType, float newValue); // 0xFF41B4B141ED981C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | combatType | int |
| 3 | newValue | float |
Facts
| Name | SET_COMBAT_FLOAT |
|---|---|
| Hash | 0xFF41B4B141ED981C |
| 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(0xFF41B4B141ED981C, -- SET_COMBAT_FLOAT
PlayerPedId(), -- Ped ped
0, -- int combatType
0.0 -- float newValue
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xFF41B4B141ED981C", // SET_COMBAT_FLOAT
PlayerPedId(), // Ped ped
0, // int combatType
0.0 // float newValue
);Function.Call((Hash)0xFF41B4B141ED981C, // SET_COMBAT_FLOAT
API.PlayerPedId(), // Ped ped
0, // int combatType
0.0f // float newValue
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.