PedClient

setEnableScuba

SET_ENABLE_SCUBA0xF99F62004024D506

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

SignatureJavaScript
setEnableScuba(ped: Ped, toggle: boolean): void
SignatureLua
setEnableScuba(ped: Ped, toggle: boolean)

Usage

JavaScript
setEnableScuba(ped, toggle);
Lua
setEnableScuba(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference