RedM Natives

SET_VEHICLE_DOORS_SHUT

Closes all doors of a vehicle:

Hash0xA4FFCD645B11F25A
Runtime nameSetVehicleDoorsShut
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x781B3D62BB013EF5

Signature

void SET_VEHICLE_DOORS_SHUT(Vehicle vehicle, BOOL closeInstantly);

Parameters

NameTypeDescription
vehicleVehicle—
closeInstantlyBOOL—

Returns void

Description

Closes all doors of a vehicle:

Usage

Lua
SetVehicleDoorsShut(vehicle, closeInstantly)

-- always works, by hash
Citizen.InvokeNative(0xA4FFCD645B11F25A, vehicle, closeInstantly)
JavaScript and C#
JavaScript
SetVehicleDoorsShut(vehicle, closeInstantly);

// by hash
Citizen.invokeNative('0xA4FFCD645B11F25A', vehicle, closeInstantly);
C#
Function.Call((Hash)0xA4FFCD645B11F25A, vehicle, closeInstantly);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.