mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-09 10:49:28 +08:00
e7cc2611b6
Co-authored-by: Maddy <59680197+xM4ddy@users.noreply.github.com> Co-authored-by: Yimura <andreas.maerten@scarlet.be>
27 lines
618 B
C++
27 lines
618 B
C++
#include "backend/looped/looped.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big
|
|
{
|
|
void looped::vehicle_rainbow_paint()
|
|
{
|
|
const Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
|
|
|
|
if (veh && g->vehicle.rainbow_paint)
|
|
{
|
|
if (g->vehicle.rainbow_paint == 1)
|
|
{
|
|
g->rgb.fade = true;
|
|
g->rgb.spasm = false;
|
|
}
|
|
else if (g->vehicle.rainbow_paint == 2)
|
|
{
|
|
g->rgb.spasm = true;
|
|
g->rgb.fade = false;
|
|
}
|
|
|
|
VEHICLE::SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(veh, g->rgb.r, g->rgb.g, g->rgb.b);
|
|
VEHICLE::SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(veh, g->rgb.r, g->rgb.g, g->rgb.b);
|
|
}
|
|
}
|
|
} |