SetActorAnim("Menu", { anim = "menu/garage_paint.anm", loop = false, }) CarColours[SelectedCar] = math.mod(CarColours[SelectedCar],4) + 1 --log("offset = " .. (CarColours[SelectedCar] - 1) * ( 256.0/1024.0 ) ) Sound.PlaySound(g_SprayButtonSound) changeCarColor(CarActors[SelectedCar], CarColours[SelectedCar]) if SelectedCar == 1 then changeCarColor(CarActors[5], CarColours[SelectedCar]) end