RedM Natives

SET_VEHICLE_DOOR_CONTROL

Hash0xD57F10EBBA814ECF
Runtime nameSetVehicleDoorControl
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF2BFA0430F0A0FCB

Signature

void SET_VEHICLE_DOOR_CONTROL(Vehicle vehicle, int doorId, int speed, float angle);

Parameters

NameTypeDescription
vehicleVehicle—
doorIdint—
speedint—
anglefloat—

Returns void

Description

Usage

Lua
SetVehicleDoorControl(vehicle, doorId, speed, angle)

-- always works, by hash
Citizen.InvokeNative(0xD57F10EBBA814ECF, vehicle, doorId, speed, angle)
JavaScript and C#
JavaScript
SetVehicleDoorControl(vehicle, doorId, speed, angle);

// by hash
Citizen.invokeNative('0xD57F10EBBA814ECF', vehicle, doorId, speed, angle + 0.0000001);
C#
Function.Call((Hash)0xD57F10EBBA814ECF, vehicle, doorId, speed, angle);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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