PedClient

setCombatFloat

SET_COMBAT_FLOAT0xFF41B4B141ED981C

The 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.

SignatureJavaScript
setCombatFloat(ped: Ped, combatType: number, p2: number): void
SignatureLua
setCombatFloat(ped: Ped, combatType: integer, p2: number)

Usage

JavaScript
setCombatFloat(ped, combatType, p2);
Lua
setCombatFloat(ped, combatType, p2)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
combatTypeintnumberinteger
p2floatnumbernumber

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

Open in the interactive natives reference