VehicleClient

setBoundsAffectWaterProbes

_SET_BOUNDS_AFFECT_WATER_PROBES0x85FC953F6C6CBDE1

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

SignatureJavaScript
setBoundsAffectWaterProbes(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setBoundsAffectWaterProbes(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setBoundsAffectWaterProbes(vehicle, toggle);
Lua
setBoundsAffectWaterProbes(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
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.

Use the vehicle bounds (instead of viewport) when deciding if a vehicle is sufficiently above the water (waterheight.dat), bypassing wave simulation checks

Reference

Namespace
Vehicle VEHICLE
In the game
void _SET_BOUNDS_AFFECT_WATER_PROBES(Vehicle vehicle, BOOL toggle)
Hash
0x85FC953F6C6CBDE1
Introduced
Game build 2802 legacy numbering

Open in the interactive natives reference