VehicleClient

setVehicleLivery2

SET_VEHICLE_LIVERY20xA6D3A8750DC73270

The GTA V native SET_VEHICLE_LIVERY2 of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleLivery2, in JavaScript and in Lua.

SignatureJavaScript
setVehicleLivery2(vehicle: Vehicle, livery: number): void
SignatureLua
setVehicleLivery2(vehicle: Vehicle, livery: integer)

Usage

JavaScript
setVehicleLivery2(vehicle, livery);
Lua
setVehicleLivery2(vehicle, livery)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
liveryintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Used to set the secondary livery (the roof on Tornado Custom being one such example.)

Livery value is dependent on the amount of liveries present in the vehicle's texture dictionary, for Tornado Custom this would be 0-6.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_LIVERY2(Vehicle vehicle, int livery)
Hash
0xA6D3A8750DC73270
Introduced
Game build 505 legacy numbering
Formerly
_SET_VEHICLE_ROOF_LIVERY

Open in the interactive natives reference