SET_COMBAT_FLOAT
combatType can be between 0-14.
Hash
0xFF41B4B141ED981CRuntime name
SetCombatFloatNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xFF41B4B141ED981CSignature
void SET_COMBAT_FLOAT(Ped ped, int combatType, float newValue);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
combatType | int | — |
newValue | float | — |
Returns void
Description
combatType: https://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_FLOATS
https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eCombatAttributeFloats
combatType can be between 0-14. See GET_COMBAT_FLOAT below for a list of possible parameters.
https://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_FLOATS
https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eCombatAttributeFloats
Usage
SetCombatFloat(ped, combatType, newValue)
-- always works, by hash
Citizen.InvokeNative(0xFF41B4B141ED981C, ped, combatType, newValue)JavaScript and C#
SetCombatFloat(ped, combatType, newValue);
// by hash
Citizen.invokeNative('0xFF41B4B141ED981C', ped, combatType, newValue + 0.0000001);Function.Call((Hash)0xFF41B4B141ED981C, ped, combatType, newValue);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eCombatAttributeFloats 72 values
See also
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.