setCombatFloat
SET_COMBAT_FLOAT0xFF41B4B141ED981CThe GTA V native SET_COMBAT_FLOAT of the PED namespace, as LS:MP client scripts call it: the global function setCombatFloat, in JavaScript and in Lua.
setCombatFloat(ped: Ped, combatType: number, p2: number): voidsetCombatFloat(ped: Ped, combatType: integer, p2: number)Usage
JavaScript
setCombatFloat(ped, combatType, p2);Lua
setCombatFloat(ped, combatType, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
combatType | int | number | integer |
p2 | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
combatType can be between 0-14. See getCombatFloat below for a list of possible parameters.
Reference
- Namespace
- Ped PED
- In the game
void SET_COMBAT_FLOAT(Ped ped, int combatType, float p2)- Hash
0xFF41B4B141ED981C