ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getVehicleDoorOpenRatio

Function

getVehicleDoorOpenRatio

Server and clientVehiclesIdentical to MTA:SA

Returns the door opening degree set with setVehicleDoorOpenRatio (0 = shut, 1 = open).

Syntax

float getVehicleDoorOpenRatio(vehicle vehicle, int door)

Arguments

vehiclevehicle
The vehicle.
doorint
Door number 0-5.

Returns

A value 0.0-1.0.

Example

local vehicle = createVehicle(400, 2000, -1700, 13.5)
setVehicleDoorOpenRatio(vehicle, 1, 1)
outputDebugString("Bagaznik: " .. getVehicleDoorOpenRatio(vehicle, 1))

See also