Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://prnt.sc/1049p7c
- hi i have fall on a drawing of a friend it has almost 20 years
- why not adding a cars like it
- and with this 2 function of the drift and the horn boost
- //drift
- int Features::driftfront = 1;
- int Features::driftbehind = 1;
- bool Features::Drift = false;
- void Features::DriftMode(bool toggle) {
- //linkhttps://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
- //linkhttps://gtaforums.com/topic/795245-v-control-codes-for-gamepads/
- //linkhttps://www.gta-modding.com/iv/tutorials/virtual_key_codes.html
- if (IsKeyPressed(0x10) || CONTROLS::IS_CONTROL_PRESSED(2, Menu2::DriftKey))
- {
- VEHICLE::SET_VEHICLE_REDUCE_GRIP(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), Features::driftfront), Features::driftbehind);
- }
- else
- {
- VEHICLE::SET_VEHICLE_REDUCE_GRIP(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 0), 0);
- }
- }
- //hornboost
- void Features::PTFXCALL2car(char *call1, char *call2, char *name)
- {
- call1o = call1;
- call2o = call2;
- nameo = name;
- STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
- GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
- GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), -2, -2, -0.5, 0, 0, 0.0, 1, false, false, false);
- }
- void Features::PTFXCALL2car1(char *call1, char *call2, char *name)
- {
- call1o = call1;
- call2o = call2;
- nameo = name;
- STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
- GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
- GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), 2.5, -2, -0.5, 0, 0, 0.0, 1, false, false, false);
- }
- void Features::PTFXCALL2car2(char *call1, char *call2, char *name)
- {
- call1o = call1;
- call2o = call2;
- nameo = name;
- STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
- GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
- GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), -2, 2, -0.5, 0.0, 0.0, 0.0, 1, false, false, false);
- }
- void Features::PTFXCALL2car3(char *call1, char *call2, char *name)
- {
- call1o = call1;
- call2o = call2;
- nameo = name;
- STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
- GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
- GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), 2.5, 2, -0.5, 0.0, 0.0, 0.0, 1, false, false, false);
- }
- float Features::floatone = 0.0;
- float Features::floattwo = 0.0;
- float Features::floatthree = -0.5;
- float Features::floatfour = 0.0;
- float Features::floatfive = 0.0;
- float Features::floatsix = 0.0;
- float Features::floatseven = 1.0;
- void Features::PTFXCALLO(char *call1, char *call2, char *name, Player target)
- {
- Ped user = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(target);
- call1o = call1;
- call2o = call2;
- nameo = name;
- PTLoopPed = user;
- STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
- GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
- GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, user, floatone, floattwo, floatthree, floatfour, floatfive, floatsix, floatseven, false, false, false);
- }
- int Features::BOOSTLEVEL2 = 2;
- int Features::BOOSTLEVEL = 2;
- bool Features::boostboolb = false;
- void Features::carboostb(bool toggle) {
- if (PLAYER::IS_PLAYER_PRESSING_HORN(Features::playerme))
- {
- Vehicle Veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::playerme), false);
- NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(Veh);
- if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(Veh))
- {
- if (Features::ptfx2car == true) {
- Features::PTFXCALL2car("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
- Features::PTFXCALL2car1("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
- }
- if (Features::ptfx2car01 == true) {
- Features::PTFXCALL2car("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
- Features::PTFXCALL2car1("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
- }
- if (Features::ptfx2car02 == true) {
- Features::PTFXCALL2car("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
- Features::PTFXCALL2car1("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
- }
- if (Features::ptfx2car03 == true) {
- Features::PTFXCALL2car("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
- Features::PTFXCALL2car1("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
- }
- if (Features::ptfx2car04 == true) {
- Features::PTFXCALL2car("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
- Features::PTFXCALL2car1("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
- }
- if (Features::ptfx2car05 == true) {
- Features::PTFXCALL2car("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
- Features::PTFXCALL2car1("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
- }
- if (Features::ptfx2car06 == true) {
- Features::PTFXCALL2car("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
- Features::PTFXCALL2car1("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
- }
- if (Features::ptfx2car07 == true) {
- Features::PTFXCALL2car("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
- Features::PTFXCALL2car1("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
- }
- if (Features::ptfx2car08 == true) {
- Features::PTFXCALL2car("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
- Features::PTFXCALL2car1("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
- }
- if (Features::ptfx2car09 == true) {
- Features::PTFXCALL2car("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
- Features::PTFXCALL2car1("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
- }
- if (Features::ptfx2car12 == true) {
- Features::PTFXCALL2car("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
- Features::PTFXCALL2car1("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
- }
- if (Features::ptfx2car13 == true) {
- Features::PTFXCALL2car("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
- Features::PTFXCALL2car1("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
- }
- if (Features::ptfx2car14 == true) {
- Features::PTFXCALL2car("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
- Features::PTFXCALL2car1("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
- }
- if (Features::ptfx2car15 == true) {
- Features::PTFXCALL2car("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
- Features::PTFXCALL2car1("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
- }
- if (Features::ptfx2car16 == true) {
- Features::PTFXCALL2car("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
- Features::PTFXCALL2car1("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
- }
- if (Features::ptfx2car17 == true) {
- Features::PTFXCALL2car("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
- Features::PTFXCALL2car1("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
- }
- if (Features::ptfx2car18 == true) {
- Features::PTFXCALL2car("scr_reburials", "scr_reburials", "scr_burial_dirt");
- Features::PTFXCALL2car1("scr_reburials", "scr_reburials", "scr_burial_dirt");
- }
- AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 1);
- float curSpeed = ENTITY::GET_ENTITY_SPEED(Veh);
- VEHICLE::SET_VEHICLE_FORWARD_SPEED(Veh, curSpeed + BOOSTLEVEL);
- {
- AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 0);
- }
- }
- }
- else
- if (GetAsyncKeyState(0x33) || CONTROLS::IS_CONTROL_PRESSED(2, Menu2::BoostBackKey)) {
- Vehicle Veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::playerme), false);
- NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(Veh);
- if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(Veh))
- {
- if (Features::ptfx2car == true) {
- Features::PTFXCALL2car2("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
- Features::PTFXCALL2car3("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
- }
- if (Features::ptfx2car01 == true) {
- Features::PTFXCALL2car2("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
- Features::PTFXCALL2car3("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
- }
- if (Features::ptfx2car02 == true) {
- Features::PTFXCALL2car2("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
- Features::PTFXCALL2car3("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
- }
- if (Features::ptfx2car03 == true) {
- Features::PTFXCALL2car2("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
- Features::PTFXCALL2car3("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
- }
- if (Features::ptfx2car04 == true) {
- Features::PTFXCALL2car2("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
- Features::PTFXCALL2car3("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
- }
- if (Features::ptfx2car05 == true) {
- Features::PTFXCALL2car2("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
- Features::PTFXCALL2car3("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
- }
- if (Features::ptfx2car06 == true) {
- Features::PTFXCALL2car2("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
- Features::PTFXCALL2car3("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
- }
- if (Features::ptfx2car07 == true) {
- Features::PTFXCALL2car2("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
- Features::PTFXCALL2car3("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
- }
- if (Features::ptfx2car08 == true) {
- Features::PTFXCALL2car2("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
- Features::PTFXCALL2car3("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
- }
- if (Features::ptfx2car09 == true) {
- Features::PTFXCALL2car2("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
- Features::PTFXCALL2car3("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
- }
- if (Features::ptfx2car12 == true) {
- Features::PTFXCALL2car2("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
- Features::PTFXCALL2car3("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
- }
- if (Features::ptfx2car13 == true) {
- Features::PTFXCALL2car2("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
- Features::PTFXCALL2car3("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
- }
- if (Features::ptfx2car14 == true) {
- Features::PTFXCALL2car2("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
- Features::PTFXCALL2car3("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
- }
- if (Features::ptfx2car15 == true) {
- Features::PTFXCALL2car2("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
- Features::PTFXCALL2car3("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
- }
- if (Features::ptfx2car16 == true) {
- Features::PTFXCALL2car2("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
- Features::PTFXCALL2car3("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
- }
- if (Features::ptfx2car17 == true) {
- Features::PTFXCALL2car2("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
- Features::PTFXCALL2car3("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
- }
- if (Features::ptfx2car18 == true) {
- Features::PTFXCALL2car2("scr_reburials", "scr_reburials", "scr_burial_dirt");
- Features::PTFXCALL2car3("scr_reburials", "scr_reburials", "scr_burial_dirt");
- }
- AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 1);
- float curSpeed = ENTITY::GET_ENTITY_SPEED(Veh);
- VEHICLE::SET_VEHICLE_FORWARD_SPEED(Veh, (curSpeed * -1.0f) - BOOSTLEVEL);
- {
- AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 0);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment