setPedCombatAttributes
SET_PED_COMBAT_ATTRIBUTES0x9F7794730795E019The GTA V native SET_PED_COMBAT_ATTRIBUTES of the PED namespace, as LS:MP client scripts call it: the global function setPedCombatAttributes, in JavaScript and in Lua.
setPedCombatAttributes(ped: Ped, attributeId: number, enabled: boolean): voidsetPedCombatAttributes(ped: Ped, attributeId: integer, enabled: boolean)Usage
JavaScript
setPedCombatAttributes(ped, attributeId, enabled);Lua
setPedCombatAttributes(ped, attributeId, enabled)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
attributeId | int | number | integer |
enabled | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
ℹ
Checked by LS:MP
attributeId must be between 0 and 90. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_COMBAT_ATTRIBUTES(Ped ped, int attributeId, BOOL enabled)- Hash
0x9F7794730795E019