ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setVehiclePlateDesign

Function

setVehiclePlateDesign

ServerVehiclesTrilogy Hub only

Chooses the graphic design of the licence plate (background and state colours) for every player. Normally the game picks the design by the city where the vehicle was created; this function sets it permanently.

Syntax

bool setVehiclePlateDesign(vehicle vehicle, int design)

Arguments

vehiclevehicle
The vehicle.
designint
0 San Fierro, 1 Las Venturas, 2 Los Santos, -1 = the game decides.

Returns

true on success, false for a value outside -1..2.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehiclePlateDesign(vehicle, 2)

See also