Vehicle::livery

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This property using for getting or setting vehicle livery.

Setter

  • int livery value

Getter

  • int livery value

Example Vehcile Livery

police livery 0
police livery 1
police livery 2

"police" have 5 livery. top number 32, 76, 05, 84, 43


Example

mp.events.addCommand({
    //... other commands
    'livery' : (player, _, livery) => {
        if(!player.vehicle) return; // check if player in vehicle or not
        if(!livery || livery < 0) return; // check player input livery or not, and livery less than 0
        player.vehicle.livery = JSON.parse([livery]); // set vehicle's livery
    },
    //... other commands
});