setBoundsAffectWaterProbes
_SET_BOUNDS_AFFECT_WATER_PROBES0x85FC953F6C6CBDE1The 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.
setBoundsAffectWaterProbes(vehicle: Vehicle, toggle: boolean): voidsetBoundsAffectWaterProbes(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setBoundsAffectWaterProbes(vehicle, toggle);Lua
setBoundsAffectWaterProbes(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | 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.
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