- Documentation
- Server functions
- setVehiclePlateDesign
Function
setVehiclePlateDesign
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
getVehiclePlateDesignReturns the plate design set withsetVehiclePlateDesign(-1 = the game decides).setVehiclePlateTextChanges the vehicle's licence plate text, visible to every player. A plate holds at most 8 characters; longer text is cut. Use letters, digits and spaces, as the game's plate font has only those.