ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1239

vehicle quick menu

by gaspermodz - 10-23-2019 - 10:09 PM
#1
if (VehicleQuick)
{
int playerCar = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 0);
int thisPlayersCar = ENTITY::GET_ENTITY_MODEL(playerCar);
GRAPHICS::DRAW_SPRITE("frontend", "gtav_logo", 0.14f, 0.415f, 0.204f, 0.104f, 0.0f, 0, 0, 0, 100);// Background left
PrintToScreen(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(thisPlayersCar), 0.061f, 0.36f, 255, 65, 0, 255, 0.6500f, 0.8500f, 0, 6); // Info Left
PrintToScreen(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(thisPlayersCar), 0.0622f, 0.3612f, 255, 255, 255, 255, 0.6500f, 0.8500f, 0, 6); // Info Left

PrintToScreen(" ~w~plate:", 0.215f, 0.366f, 255, 65, 0, 255, 0.3200f, 0.3200f, 0, 6);
PrintToScreen(VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(playerCar), 0.215f, 0.386f, 255, 65, 0, 255, 0.3200f, 0.3200f, 0, 6);


GRAPHICS::DRAW_SPRITE("frontend", "gtav_logo", 0.14f, 0.49f, 0.204f, 0.154f, 0.0f, bannerRectRed, bannerRectGreen, bannerRectBlue, 255);// Background left
GRAPHICS::DRAW_SPRITE("frontend", "gtav_logo", 0.14f, 0.49f, 0.20f, 0.15f, 0.0f, 25, 25, 25, 255);// Background left
GRAPHICS::DRAW_SPRITE("shared", "bggradient_32x1024", 0.14f, 0.46f, 0.20f, 0.09f, 0.0f, 25, 25, 25, 140);//BG Shader
GRAPHICS::DRAW_SPRITE("commonmenutu", "rockstar", 0.225f, 0.44f, 0.025f, 0.025f, 0.0f, 0, 0, 0, 250);//RockStar Logo

PrintToScreen(" ~w~Press ~b~[LB] ~w~ fix vehicle", 0.06f, 0.42f, 250, 0, 0, 255, 0.4000f, 0.4000f, 0, 6); // Info Left
PrintToScreen(" ~w~Press ~b~[RB] ~w~ go up", 0.06f, 0.44f, 250, 0, 0, 255, 0.4000f, 0.4000f, 0, 6); // Info Left
PrintToScreen(" ~w~Press ~b~[Dpad_Right] ~w~To Pop A Wheelie", 0.06f, 0.46f, 250, 0, 0, 255, 0.4000f, 0.4000f, 0, 6); // Info Left
PrintToScreen(" ~w~Press ~b~[Dpad_Left] ~w~For Cruise Controll", 0.06f, 0.48f, 250, 0, 0, 255, 0.4000f, 0.4000f, 0, 6); // Info Left
PrintToScreen(" ~w~Press ~b~[LS] ~w~nitro", 0.06f, 0.50f, 250, 0, 0, 255, 0.4000f, 0.4000f, 0, 6); // Info Left
PrintToScreen(" ~w~Press ~b~[Back] ~w~exit menu", 0.06f, 0.52f, 250, 0, 0, 255, 0.4000f, 0.4000f, 0, 6); // Info Left
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_Back))
{
VehicleQuick = false;
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_L1))
{
PrintToScreen("~b~>>>", 0.045f, 0.42f, bannerRectRed, bannerRectGreen, bannerRectBlue, 255, 0.4000f, 0.4000f, 0, 6); // Info Left 
int myvehicle;
if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::GET_PLAYER_PED(PLAYER::PLAYER_ID()), 0))
{
myvehicle = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(PLAYER::PLAYER_ID()), 0);
if (ENTITY::DOES_ENTITY_EXIST(myvehicle) && ENTITY::IS_ENTITY_A_VEHICLE(myvehicle))
{
STREAMING::REQUEST_NAMED_PTFX_ASSET("proj_xmas_firework");
GRAPHICS::_SET_PTFX_ASSET_NEXT_CALL("proj_xmas_firework");
GRAPHICS::START_PARTICLE_FX_NON_LOOPED_ON_ENTITY("scr_firework_xmas_burst_rgw", PLAYER::PLAYER_PED_ID(), 0.0, 0.0, -0.5, 0.0, 0.0, 0.0, 1.0, false, false, false);
VEHICLE::SET_VEHICLE_FIXED(myvehicle);
VEHICLE::SET_VEHICLE_DIRT_LEVEL(myvehicle, 0.0f);

}
}



}
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_R1))
{
PrintToScreen("~b~>>>", 0.045f, 0.44f, bannerRectRed, bannerRectGreen, bannerRectBlue, 255, 0.4000f, 0.4000f, 0, 6); // Info Left 
CarFly = !CarFly;
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Dpad_Right))
{
PrintToScreen("~b~>>>", 0.045f, 0.46f, bannerRectRed, bannerRectGreen, bannerRectBlue, 255, 0.4000f, 0.4000f, 0, 6); // Info Left 
Wheelie = !Wheelie;
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Dpad_Left))
{
PrintToScreen("~b~>>>", 0.045f, 0.48f, bannerRectRed, bannerRectGreen, bannerRectBlue, 255, 0.4000f, 0.4000f, 0, 6); // Info Left 
CruiseControll = !CruiseControll;
}
if (CONTROLS::IS_CONTROL_PRESSED(0, xBUTTON_LS)) 
{
PrintToScreen("~b~>>>", 0.045f, 0.50f, bannerRectRed, bannerRectGreen, bannerRectBlue, 255, 0.4000f, 0.4000f, 0, 6); // Info Left 
Nitro = !Nitro;
}

}
Reply

Users browsing: 3 Guest(s)