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

Function

getVehicleVariant

Server and clientVehiclesIdentical to MTA:SA

Returns the vehicle's two appearance variants (255 = none). Works on both sides.

Syntax

int, int getVehicleVariant(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

Variant 1 and 2.

Example

local vehicle = createVehicle(422, 2000, -1690, 13.5)
local v1, v2 = getVehicleVariant(vehicle)
outputDebugString("Warianty: " .. v1 .. ", " .. v2)

See also