setVehicleDoorsShut
SET_VEHICLE_DOORS_SHUT0x781B3D62BB013EF5The GTA V native SET_VEHICLE_DOORS_SHUT of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleDoorsShut, in JavaScript and in Lua.
setVehicleDoorsShut(vehicle: Vehicle, closeInstantly: boolean): voidsetVehicleDoorsShut(vehicle: Vehicle, closeInstantly: boolean)Usage
JavaScript
setVehicleDoorsShut(vehicle, closeInstantly);Lua
setVehicleDoorsShut(vehicle, closeInstantly)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
closeInstantly | 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.
Closes all doors of a vehicle:
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_DOORS_SHUT(Vehicle vehicle, BOOL closeInstantly)- Hash
0x781B3D62BB013EF5