local myCar = getPedOccupiedVehicle(localPlayer)
setVehicleColor(myCar, 0, 0, 255, 0, 0, 255)
This will change the color of your car to red, but other players will still see your car as its original color. This is because the color change is only applied to your client and is not synced with the server or other clients