Skip to main content

Vehicle::getCustomPrimaryColour

Syntax​

vehicle.getCustomPrimaryColour(r, g, b);

Required Arguments​

  • r: int
  • g: int
  • b: int

Return value​

  • object: r, g, b

Example​

mp.events.add("playerEnterVehicle", (vehicle, seat) => { // Getting RED Color of RGB when player Enter vehicle
let rgb = vehicle.getCustomPrimaryColour(0, 0, 0); //
mp.gui.chat.push("Red color is: " + rgb.r); // rgb.r = from 0 to 255 depends on vehicle's color
});