- Documentation
- Shared functions
- getVehicleVariant
Function
getVehicleVariant
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)