setDriverAbility
SET_DRIVER_ABILITY0xB195FFA8042FC5C3The GTA V native SET_DRIVER_ABILITY of the PED namespace, as LS:MP client scripts call it: the global function setDriverAbility, in JavaScript and in Lua.
setDriverAbility(driver: Ped, ability: number): voidsetDriverAbility(driver: Ped, ability: number)Usage
JavaScript
setDriverAbility(driver, ability);Lua
setDriverAbility(driver, ability)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
driver | Ped | number | integer |
ability | 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.
The function specifically verifies the value is equal to, or less than 1.0f. If it is greater than 1.0f, the function does nothing at all.
Reference
- Namespace
- Ped PED
- In the game
void SET_DRIVER_ABILITY(Ped driver, float ability)- Hash
0xB195FFA8042FC5C3