VehicleClient

setVehicleOnGroundProperly

SET_VEHICLE_ON_GROUND_PROPERLY0x49733E92263139D1

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

SignatureJavaScript
setVehicleOnGroundProperly(vehicle: Vehicle, p1: number): boolean
SignatureLua
setVehicleOnGroundProperly(vehicle: Vehicle, p1: number): boolean

Usage

JavaScript
const result = setVehicleOnGroundProperly(vehicle, p1);
Lua
local result = setVehicleOnGroundProperly(vehicle, p1)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
p1floatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets a vehicle on the ground on all wheels. Returns whether or not the operation was successful.

sfink: This has an additional param(Vehicle vehicle, float p1) which is always set to 5.0f in the b944 scripts.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL SET_VEHICLE_ON_GROUND_PROPERLY(Vehicle vehicle, float p1)
Hash
0x49733E92263139D1

Open in the interactive natives reference