setSubmarineCrushDepths
SET_SUBMARINE_CRUSH_DEPTHS0xC59872A5134879C7The GTA V native SET_SUBMARINE_CRUSH_DEPTHS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setSubmarineCrushDepths, in JavaScript and in Lua.
setSubmarineCrushDepths(
vehicle: Vehicle,
p1: boolean,
depth1: number,
depth2: number,
depth3: number
): voidsetSubmarineCrushDepths(
vehicle: Vehicle,
p1: boolean,
depth1: number,
depth2: number,
depth3: number
)Usage
JavaScript
setSubmarineCrushDepths(vehicle, p1, depth1, depth2, depth3);Lua
setSubmarineCrushDepths(vehicle, p1, depth1, depth2, depth3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
p1 | BOOL | boolean | boolean |
depth1 | float | number | number |
depth2 | float | number | number |
depth3 | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_SUBMARINE_CRUSH_DEPTHS(Vehicle vehicle, BOOL p1, float depth1, float depth2, float depth3)- Hash
0xC59872A5134879C7- Formerly
_JITTER_VEHICLE