SET_VEHICLE_DOOR_CONTROL
Hash
0xD57F10EBBA814ECFRuntime name
SetVehicleDoorControlNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF2BFA0430F0A0FCBSignature
void SET_VEHICLE_DOOR_CONTROL(Vehicle vehicle, int doorId, int speed, float angle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
doorId | int | — |
speed | int | — |
angle | float | — |
Returns void
Description
doorId: see SET_VEHICLE_DOOR_SHUT
Usage
SetVehicleDoorControl(vehicle, doorId, speed, angle)
-- always works, by hash
Citizen.InvokeNative(0xD57F10EBBA814ECF, vehicle, doorId, speed, angle)JavaScript and C#
SetVehicleDoorControl(vehicle, doorId, speed, angle);
// by hash
Citizen.invokeNative('0xD57F10EBBA814ECF', vehicle, doorId, speed, angle + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eDoorId 13 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.