VehicleClient

getSubmarineNumberOfAirLeaks

GET_SUBMARINE_NUMBER_OF_AIR_LEAKS0x093D6DDCA5B8FBAE

The GTA V native GET_SUBMARINE_NUMBER_OF_AIR_LEAKS of the VEHICLE namespace, as LS:MP client scripts call it: the global function getSubmarineNumberOfAirLeaks, in JavaScript and in Lua.

SignatureJavaScript
getSubmarineNumberOfAirLeaks(submarine: Vehicle): number
SignatureLua
getSubmarineNumberOfAirLeaks(submarine: Vehicle): integer

Usage

JavaScript
const result = getSubmarineNumberOfAirLeaks(submarine);
Lua
local result = getSubmarineNumberOfAirLeaks(submarine)

Parameters

ParameterTypeJavaScriptLua
submarineVehiclenumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Vehicle VEHICLE
In the game
int GET_SUBMARINE_NUMBER_OF_AIR_LEAKS(Vehicle submarine)
Hash
0x093D6DDCA5B8FBAE
Introduced
Game build 2189 legacy numbering
Formerly
_GET_SUBMARINE_CRUSH_DEPTH_WARNING_STATE

Open in the interactive natives reference