setEnableScuba
SET_ENABLE_SCUBA0xF99F62004024D506The GTA V native SET_ENABLE_SCUBA of the PED namespace, as LS:MP client scripts call it: the global function setEnableScuba, in JavaScript and in Lua.
setEnableScuba(ped: Ped, toggle: boolean): voidsetEnableScuba(ped: Ped, toggle: boolean)Usage
JavaScript
setEnableScuba(ped, toggle);Lua
setEnableScuba(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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.
Enables diving motion when underwater.
Reference
- Namespace
- Ped PED
- In the game
void SET_ENABLE_SCUBA(Ped ped, BOOL toggle)- Hash
0xF99F62004024D506