RedM Natives

SET_VEHICLE_DOOR_OPEN

Can also be used on trains and its wagons

Hash0x550CE392A4672412
Runtime nameSetVehicleDoorOpen
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7C65DAC73C35C862

Signature

void SET_VEHICLE_DOOR_OPEN(Vehicle vehicle, int doorId, BOOL loose, BOOL openInstantly);

Parameters

NameTypeDescription
vehicleVehicle—
doorIdint—
looseBOOL—
openInstantlyBOOL—

Returns void

Description

doorId: see SET_VEHICLE_DOOR_SHUT
Can also be used on trains and its wagons

Usage

Lua
SetVehicleDoorOpen(vehicle, doorId, loose, openInstantly)

-- always works, by hash
Citizen.InvokeNative(0x550CE392A4672412, vehicle, doorId, loose, openInstantly)
JavaScript and C#
JavaScript
SetVehicleDoorOpen(vehicle, doorId, loose, openInstantly);

// by hash
Citizen.invokeNative('0x550CE392A4672412', vehicle, doorId, loose, openInstantly);
C#
Function.Call((Hash)0x550CE392A4672412, vehicle, doorId, loose, openInstantly);

Enums and flags

Sources

alloc8or RDR3 NativeDB

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