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
 4148

GTA 5 ALL PROTECTIONS CODES FOR PS3

by giorgi12 - 11-18-2018 - 08:05 PM
#1
//protrctions

//variables

int AttachPreventionDelay = 0;
int AttachPreventionDelay2 = 0;
int VehicleFreezeProtectionDelay = 0;
bool nearbypeds = false;
bool nearbyvehicles = false;
bool ExceptionProtect= false;
bool blockplanes = false;
bool blockhelis = false;
bool blockscripts = false;
bool CheckAttached;
//function
Hash Props[132] =
{
 0xB467C540, /*p_spinning_anus_s*/
 0xC2BC19CD, /*p_cs_mp_jet_01_s*/
 0xC42C019A, /*prop_ld_ferris_wheel*/
 0xFB631122, /*prop_bumper_car_01*/
 0x745F3383, /*prop_windmill_01*/
 0xBF8918DE, /*prop_jetski_ramp_01*/
 0xB157C9E4, /*prop_mp_ramp_01*/
 0xF4F1511E, /*prop_mp_ramp_02*/
 0x93948E5E, /*prop_mp_ramp_03*/
 0x6DB9599A, /*prop_bskball_01*/
 0x2E28CA22, /*p_tram_crash_s*/
 0xC079B265, /*prop_beach_fire*/
 0xE8032E4, /*prop_weed_pallet*/
 0x8973A868, /*prop_air_bigradar*/
 0x8E8C7A5B, /*prop_crashed_heli*/
 0xBD8AE007, /*prop_space_pistol*/
 0x6F9939C7, /*prop_ld_toilet_01*/
 0x4B3D240F, /*prop_wheelchair_01*/
 0x961CCC04, /*prop_cs_trolley_01*/
 0xE3BA450, /*Xmas Tree*/
 0x7121AC4, /*Large Xmas Tree*/
 0xB7C30A72,/*prop_tv_06*/
 0xF0A61994, /*prop_bong_01*/
 0xED2E79F0, /*prop_cs_ice_locker*/
 0x37FDC243, /*prop_mp_cone_01*/
 0x35AE1F39, /*prop_air_stair_03*/
 0xF7FCF988, /*prop_bank_vaultdoor*/
 0xE0264F5D,/*prop_roadcone01a*/
 0x6B795EBC, /*prop_alien_egg_01*/
 0x1405669B, /*prop_boxing_glove_01*/
 0x671C5C38, /*prop_boombox_01*/
 0xE6CB661E, /*prop_cs_dildo_01*/
 0xE2BA016F, /*prop_cs_katana_01*/
 0xEE95F258, /*prop_wheel_01*/
 0x52660DBB, /*prop_car_seat*/
 0xC89630B8, /*prop_minigun_01*/
 0xD733DF, /*root_scroll_anim_skel*/
 0xFA686C0E, /*prop_bin_04a*/
 0xF830B63E, /*prop_swiss_ball_01*/
 0xF3565180,/*prop_cs_meth_pipe*/
 0xF15FB3DD,/*prop_beggers_sign_01*/
 0xF046EA37,/*prop_gold_bar*/
 0xEFC4165A, /*prop_food_van_01*/
 0xEDA96F47,/*prop_distantcar_night*/
 0xEB7D0265,/*prop_golf_bag_01b*/
 0xE92E717E,/*prop_carwash_roller_vert*/
 0xE8E8AADA,/*prop_skip_01a*/
 0xE44D5CEC,/*prop_cash_crate_01*/
 0xE3CE09E2, /*prop_dummy_plane*/
 0xE1C17F6F,/*prop_kayak_01*/
 0xD541462D, /*p_ld_soc_ball_01*/
 0xD44295DD, /*p_cablecar_s*/
 0xCB74FE41,/*prop_roller_car_02*/
 0xCB290EE2,/*prop_fbibombplant*/
 0xC79A987E,/*prop_beach_volball01*/
 0xC54C0CD2,/*prop_huge_display_01*/
 0xC381B3E6,/*prop_lifeblurb_02*/
 0xC2451209,/*prop_air_lights_02a*/
 0xC20633F4,/*prop_cup_saucer_01*/
 0xBE862050, /*prop_portacabin01*/
 0xBB314853,/*prop_player_gasmask*/
 0xB60A04EC,/*prop_water_corpse_01*/
 0xB58BE281,/*prop_byard_rowboat1*/
 0xB58259BD,/*prop_security_case_01*/
 0xB39B99E2,/*prop_jet_bloodsplat_01*/
 0xB321DD82,/*prop_cs_leg_chain_01*/
 0xB21C3926,/*prop_hose_2*/
 0xB20E5785, /*prop_sculpt_fix*/
 0xB155FD87,/*prop_entityxf_covered*/
 0xB155B61D,/*prop_drop_armscrate_01*/
 0xA9BD0D16, /*prop_coke_block_01*/
 0xA67C935F,/*prop_bowling_pin*/
 0xA50DDDD0, /*prop_bball_arcade_01*/
 0xA22CEA2,/*prop_cs_bowie_knife*/
 0x9C762726, /*prop_lev_des_barge_02*/
 0x98752042,/*prop_ld_fan_01_old*/
 0x97A58869,/*prop_inflatearch_01*/
 0x927A5723, /*prop_fan_01*/
 0x922C2A43, /*prop_big_shit_01*/
 0x8E146BFF,/*prop_ld_monitor_01*/
 0x8DA1C0E, /*Orange Ball?*/
 0x8AF58425, /*prop_lev_des_barge_01*/
 0x8A451C5C,/*prop_ferris_car_01*/
 0x84898EFE,/*prop_big_shit_02*/
 0x7FFBC1E2, /*prop_dummy_01*/
 0x7F2B2371,/*prop_ld_fireaxe*/
 0x72F54E90,/*prop_jb700_covered*/
 0x72C8A3FB,/*prop_ld_shovel*/
 0x6F204E3A,/*prop_sprink_golf_01*/
 0x6B5FFA1D,/*prop_gravetomb_01a*/
 0x6AD326C2, /*prop_space_rifle*/
 0x699C8FC0,/*prop_ld_bomb_anim*/
 0x678FC2DB, /*prop_wheelchair_01_s*/
 0x60F90AD4,/*prop_cs_heist_bag_02*/
 0x5C1D75A6,/*prop_chair_05*/
 0x5B5C4263, /*prop_chip_fryer*/
 0x5A6DF96A,/*prop_hockey_bag_01*/
 0x58D3B4EA, /*prop_micro_01*/
 0x5869A8F8, /*prop_large_gold*/
 0x5571173D, /*prop_beer_neon_01*/
 0x5411322E,/*prop_ld_haybail*/
 0x532B1DD1, /*prop_rub_trolley01a*/
 0x50A607D0,/*prop_buck_spade_08*/
 0x4DA19524,/*prop_cs_cardbox_01*/
 0x4AF9D1D9,/*prop_shamal_crash*/
 0x478A8882,/*prop_rad_waste_barrel_01*/
 0x456AA864, /*prop_dj_deck_01*/
 0x434BFB7C,/*prop_burgerstand_01*/
 0x40F52369, /*p_v_43_safe_s*/
 0x3DC31836, /*prop_tv_flat_01*/
 0x3C3B89F0,/*prop_cs_bin_01_skinned*/
 0x39885BB5, /*prop_chickencoop_a*/
 0x392D62AA, /*prop_gold_cont_01*/
 0x37D80B0E,/*prop_cheetah_covered*/
 0x369D8410,/*prop_el_guitar_02*/
 0x34D5D3FD, /*prop_golf_bag_01*/
 0x2BE688E0,/*prop_dock_bouy_2*/
 0x2AE13DFA, /*prop_armchair_01*/
 0x29E362FF,/*prop_bucket_01a*/
 0x29CB0F3C, /*prop_armour_pickup*/
 0x240D3E4B,/*prop_pizza_box_01*/
 0x1F811CE1,/*prop_drug_package*/
 0x1F550C17, /*prop_chair_01a*/
 0x1D8A4162,/*prop_hotel_clock_01*/
 0x1AFA6A0A, /*prop_weed_01*/
 0x1AB39621,/*prop_lawnmower_01*/
 0x16A39A90, /*prop_dog_cage_01*/
 0x14E3D6EB, /*prop_inflategate_01*/
 0x113FD533,/*prop_money_bag_01*/
 0x0E8032E4, /*prop_weed_pallet*/
 0x0E3BA450, /*prop_xmas_tree_int*/
 0x07121AC4, /*prop_xmas_ext*/
};
int AttachPreventionDelay = 0, VehicleFreezeProtectionDelay = 0, RemoveNearbyPedsDelay = 0;

void VehicleFreezeProtection(bool CheckAttached = true)
{
if (VehicleFreezeProtectionDelay < GAMEPLAY::GET_GAME_TIMER())
{
const int numElements = 10;
const int arrSize = numElements + 1;  //Start at index 2, and the odd elements are padding
int vehs[arrSize];
vehs[0] = numElements;
int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), vehs);
for (int i = 0; i < count; ++i)
{
int offsettedID = i + 1;
if (ENTITY::DOES_ENTITY_EXIST(vehs[offsettedID]))
{
bool Contin = true;
if (CheckAttached)
{
if (!(ENTITY::IS_ENTITY_ATTACHED(vehs[offsettedID]) && ENTITY::GET_ENTITY_ATTACHED_TO(vehs[offsettedID]) == PLAYER::PLAYER_PED_ID()))
Contin = false;
}
if (Contin)
{
if (NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]) && NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(vehs[offsettedID]))
{
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
ENTITY::SET_ENTITY_AS_MISSION_ENTITY(vehs[offsettedID], 0, 1);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
ENTITY::DELETE_ENTITY(&vehs[offsettedID]);
ShowSubtitle("~y~Vehicle Deleted!");
}
}
}
}
VehicleFreezeProtectionDelay = GAMEPLAY::GET_GAME_TIMER() + 500;
}
}
void RemoveNearbyPeds(bool CheckAttached = true)
{
if (RemoveNearbyPedsDelay < ::GET_GAME_TIMER())
{
const int numElements = 10;
const int arrSize = numElements + 1;
int peds[arrSize];
peds[0] = numElements;
int count = ::GET_PED_NEARBY_PEDS(::PLAYER_PED_ID(), peds, -1);
for (int i = 0; i < count; ++i)
{
int offsettedID = i + 1;
if (::DOES_ENTITY_EXIST(peds[offsettedID]))
{
bool Contin = true;
if (CheckAttached)
{
if (!(::IS_ENTITY_ATTACHED(peds[offsettedID]) && ::GET_ENTITY_ATTACHED_TO(peds[offsettedID]) == ::PLAYER_PED_ID()))
Contin = false;
}
if (Contin)
{
if (::NETWORK_REQUEST_CONTROL_OF_ENTITY(peds[offsettedID]) && ::NETWORK_HAS_CONTROL_OF_ENTITY(peds[offsettedID]))
{
::DETACH_ENTITY(peds[offsettedID], 1, 1);
::SET_ENTITY_COORDS(peds[offsettedID], 6000.0, 6000.0, 6000.0, true, false, false, true);
::SET_ENTITY_AS_MISSION_ENTITY(peds[offsettedID], 1, 1);
::DELETE_PED(&peds[offsettedID]);
::DELETE_ENTITY(&peds[offsettedID]);
char buf[100];
snprintf(buf, sizeof(buf), "~r~Ped Deleted!", ::GET_PLAYER_NAME(selectedPlayer));
ShowSubtitle(buf);
}
}
}
}
RemoveNearbyPedsDelay = ::GET_GAME_TIMER() + 500;
}
}
void DeleteNearbyProps(bool CheckAttached)
{
float Range = 2.0f;
if (!CheckAttached)
Range = 10.0f;

Vector3 playerPosition = GET_ENTITY_COORDS(PLAYER_PED_ID(), false);
for (int i = 0; i < 132; i++)
{
ObjectHashes[120] = GET_CLOSEST_OBJECT_OF_TYPE(playerPosition.x, playerPosition.y, playerPosition.z, Range, ObjectHashes[i], false, false, true);

if (DOES_ENTITY_EXIST(ObjectHashes[120]))
{
bool Contin = true;
if (CheckAttached)
{
if (GET_ENTITY_ATTACHED_TO(ObjectHashes[120]) != PLAYER_PED_ID())
Contin = false;
}
if (Contin)
{
if (NETWORK_REQUEST_CONTROL_OF_ENTITY(ObjectHashes[120]) && NETWORK_HAS_CONTROL_OF_ENTITY(ObjectHashes[120]))
{
DETACH_ENTITY(ObjectHashes[120], 1, 1);
SET_ENTITY_COORDS(ObjectHashes[120], 6000.0, 6000.0, 6000.0, true, false, false, true);
DELETE_ENTITY(&ObjectHashes[120]);
}
}
}
}
}
#ifdef DEX
int32_t write_process(uint64_t ea, const void * data, uint32_t size)
{
system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
#else
int32_t write_process(uint64_t ea, const void * data, uint32_t size)
{
system_call_4(201, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
#endif
int32_t write_process123(uint64_t ea, const void * data, uint32_t size)
{
system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
int write_process_two(uint64_t ea, const void * data, uint32_t size = 4)
{
system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
void patchGameEvent(int gEvent, bool toggle = true)
{
int blr[] = { 0x4E800020 };
int mflr[] = { 0x7C0802A6 };
write_process_two(gEvent, toggle ? blr : mflr);
}

//otherloop

if (nearbyvehicles)
{
VehicleFreezeProtection(false);
}
if (CheckAttached && AttachPreventionDelay < GET_GAME_TIMER())
{
DeleteNearbyProps(true);
AttachPreventionDelay = GET_GAME_TIMER() + 1000;
}
if (nearbypeds)
{
RemoveNearbyPeds(false);
}
if (ExceptionProtect)
{
*(unsigned int*)(0x12C8D60) = 0x4e800020; //Kick Votes Protect
*(unsigned int*)(0x12C922C) = 0x4e800020; //Request Detachment Protect
*(unsigned int*)(0x12D1A50) = 0x4e800020; //Network Bank protect
*(unsigned int*)(0x12D1E28) = 0x4e800020; //Rp, non host kick Protection
*(unsigned int*)(0x12C78DC) = 0x4e800020; //Explosion Protect 
*(unsigned int*)(0x12C0128) = 0x4e800020; //Weapon Protect
*(unsigned int*)(0x12C2988) = 0x4e800020; //FX Protection
*(unsigned int*)(0x12C2E2C) = 0x4e800020; //clear task checking/// 
*(unsigned int*)(0x12C3C74) = 0x4e800020; //remove all weapons
*(unsigned int*)(0x12C4A44) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12C5638) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12C69F0) = 0x4e800020; //explosions
*(unsigned int*)(0x12C7D74) = 0x4e800020; //request control//
*(unsigned int*)(0x12C96B4) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12CAE68) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12CB55C) = 0x4e800020; //explosions
*(unsigned int*)(0x12CFDE8) = 0x4e800020; //request control//
*(unsigned int*)(0x12D0248) = 0x4e800020; //request control//
*(unsigned int*)(0x12D5098) = 0x4e800020; //request control//
*(unsigned int*)(0x12D734C) = 0x4e800020; //request control//
*(unsigned int*)(0x12CC958) = 0x4e800020; //request control//
*(unsigned int*)(0x12D0584) = 0x4e800020; //request control//
*(unsigned int*)(0x12D137C) = 0x4e800020; //request control//




}
patchGameEvent(0x13BF800, blockplanes);
patchGameEvent(0xAF25F0, blockhelis);
if (blockscripts)
{
*(int*)0x12BCF00;//Data Verify
*(int*)0x12BD36C;//Request Control
*(int*)0x12BDFCC;//Give Control
*(int*)0x12C0128;//Weapon Damage
*(int*)0x12C1AF4;//Pickup Event
*(int*)0x12C2314;//Map Pickup
*(int*)0x12C2988;//Clock Event
*(int*)0x12C2E2C;//Weather Event
*(int*)0x12C31AC;//Respawn Ped Event
*(int*)0x12C37EC;//Give Weapon
*(int*)0x12C3ACC;//Remove Weapon
*(int*)0x12C3C74;//Remove All Weapons
*(int*)0x12C413C;//Vehicle Control
*(int*)0x12C4A44;//Fire Event
*(int*)0x12C5638;//Explosion
*(int*)0x12C69F0;//Projectile
*(int*)0x12C78DC;//Alter Wanted Level
*(int*)0x12C7D74;//Change Radio
*(int*)0x12C7FE8;//Ragdoll Request
*(int*)0x12C83D0;//Player Taunt
*(int*)0x12C87AC;//Player Card Stat
*(int*)0x12C8950;//Door Break
*(int*)0x12C8D60;//Scripted Game
*(int*)0x12C922C;//Remote Script Info
*(int*)0x12C96B4;//Remote Script Leave
*(int*)0x12C99E8;//Mark Dont Needed
*(int*)0x12C9FFC;//Convert Script Entity
*(int*)0x12CA484;//Script World State
*(int*)0x12CA7AC;//Incident Entity
*(int*)0x12CAE68;//Clear Area
*(int*)0x12CB198;//Request Synced Scene
*(int*)0x12CB55C;//Start Synced Scene
*(int*)0x12CB930;//Update Synced Scene
*(int*)0x12CB70C;//Stop Synced Scene
*(int*)0x12CBE34;//Ped Scripted Task
*(int*)0x12CC28C;//Ped Sequence Task
*(int*)0x12CC958;//Clear Ped Tasks
*(int*)0x12CCCA0;//Start Ped Arrest
*(int*)0x12CCE10;//Start Ped Uncuff
*(int*)0x12CCF44;//Sound Car Horn
*(int*)0x12CD568;//Entity Area Status
*(int*)0x12CDB54;//Garage Occupied Status
*(int*)0x12CDFA4;//Ped Conversation Line
*(int*)0x12CE70C;//Entity State Change
*(int*)0x12CFDE8;//Play Sound
*(int*)0x12D0248;//Stop Sound
*(int*)0x12D0584;//Bank Request
*(int*)0x12D09D4;//Request Door
*(int*)0x12D0E0C;//Train Request
*(int*)0x12D114C;//Train Report
*(int*)0x12D137C;//Increment Stat
*(int*)0x12D17E0;//Phone Explosion
*(int*)0x12D1A50;//Request Detachment
*(int*)0x12D1E28;//Kick Votes
*(int*)0x12D2104;//Pickup Rewards
*(int*)0x12D2500;//Crc Hash Check
*(int*)0x12D29E4;//Blow Up Vehicle
*(int*)0x12D35A0;//Responded To Threat
*(int*)0x12CD244;//Driven Mouth Movement
*(int*)0x12D427C;//Pickup Destroyed
*(int*)0x12D4660;//Player Scars
*(int*)0x12D4970;//Check Exe Size
*(int*)0x12D5098;//PTFX
*(int*)0x12D58FC;//Ped Seen Dead
*(int*)0x12D5CB4;//Sticky Bomb
*(int*)0x12D4C38;//Check Code Crcs
*(int*)0x12D5FB8;//Silenced Gunshot
*(int*)0x12D64D4;//Play Pain
*(int*)0x12D69B;//Player Head Blend
*(int*)0x12D6E50;//Ped From Pedgroup
*(int*)0x12D734C;//Cash Spawn
}
opd_s _0x012C8D60_t =
{
0x0012C8D60,
TOC
};
bool bool_protection[50];
unsigned int(*_0x0012C8D60)(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9) = (unsigned int(*)(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)) & _0x012C8D60_t;
char scriptEventDialogText[100];
unsigned int scriptEventDetour(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9) {
int addressOfArgs = r3 + 10 * 0x4;
char *senderName = (char*)(*(int*)(senderData + 0x78) + 0x10);
char *senderName123 = (char*)(*(int*)(senderData + 0x78) + 0x10);

if (*(int*)addressOfArgs == 0x18)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s ~w~Tried To Send Mugger/Mercenaries!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x14)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Forcing Tutorial Video!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x35)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Force You Into Arm Wrestling!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x25 && *(int*)(addressOfArgs + 0x8) == 0x1)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Call A Pick Up Helicopter For You!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x1 && *(int*)(addressOfArgs + 0x8) == 0x49)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force Suicide On Your Player!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x132 && *(int*)(addressOfArgs + 0x8) == 0x53)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried To Force A Pop-Up On Your Screen!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x1B)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Call An Airstrike On You!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x37)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force You Into Golf!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x36)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force You Into Darts!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x3A)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force You To Flight School!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x21)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Use 'Smuggler Plane' On Your Player!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x23)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Mark Your Vehicle As A Target!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x1A)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Give You A Backup Helicopter!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x40)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Remove Your HUD And Phone!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x164)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Remove Your Wanted Level!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x35)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Non Host Kick You!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x34)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Fake leave On You!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x2e)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Reset Your View!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0xD8)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Give You %i RP!", senderName, *(int*)(addressOfArgs + 0x8));
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0xDA && *(int*)addressOfArgs == 0xDB) {
if (bool_protection[16]) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Adding Money To Your Bank!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
}
}
if (*(int*)addressOfArgs == 0x16C)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Forcing You To Apartment!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3)
{
if (*(int*)(addressOfArgs + 0x8) == 0x37 || *(int*)(addressOfArgs + 0x8) == 0x36 || *(int*)(addressOfArgs + 0x8) == 0x35)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Teleporting To Game!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
}
if (*(int*)addressOfArgs == 0x23)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Activate Broadcast App!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x98) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Fake Join Job Message!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x29) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried One Vone DeathMatch Invite!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x24) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~  Tried To Desactivate Broadcast App!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}

if (*(int*)addressOfArgs == 0x1E) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Play Sound Type 0!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}

if (*(int*)addressOfArgs == 0x1F) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Play Sound Type !~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}

if (*(int*)addressOfArgs == 0x187198C) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Change Weather!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2/* && *(int*)(addressOfArgs+0x4) == PLAYER::PLAYER_ID()*/ && *(int*)(addressOfArgs + 0x8) == 0x35) {
//this is kick player
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s Tried To Kick You!~b~Redirecting...", senderName);
drawNotification(scriptEventDialogText);
//return 0;
*(int*)addressOfArgs = 0;
}
return _0x0012C8D60(r3, senderData, recieverData, r6, r7, r8, r9);
}
void setupScriptEventDetour() {//call this on game start to set it up aka put in Hook()
*(int*)(0x1C6BD80) = *(int*)( /*this returns the opd struct address Function*/(int)&scriptEventDetour);//same
*(int*)((0x1C6BD80 + 0x4)) = *(int*)( /*this returns the opd struct address TOC*/(int)&scriptEventDetour + 0x4);
}

    //==========================SPRX PROTECTIONS==================================
#pragma region Protection
case ModProtection:
subTitle("Protection");
addBoolOption("Peds", nearbypeds);
addBoolOption("Vehicles", nearbyvehicles);
addBoolOption("Exception Protect", ExceptionProtect);
addBoolOption("Planes", blockplanes);
addBoolOption("Helicopters", blockhelis);
addBoolOption("Props", CheckAttached);
switch (getOption())
{
case 1:nearbypeds = !nearbypeds; break;
case 2:nearbyvehicles = !nearbyvehicles; break;
case 3:ExceptionProtect= !ExceptionProtect; break;
case 4:blockplanes = !blockplanes; break;
case 5:blockhelis = !blockhelis; break;
case 6:CheckAttached = !CheckAttached; break;

}
break;





Download File: https://drive.google.com/file/d/1vDqj9xP...sp=sharing

Any Problem Contact me on Skype: Fabio Dev
Reply
#2
thanks for the leak bro
Reply
#3
(11-18-2018 - 08:22 PM)XeZephyr Wrote: thanks for the leak bro

np bro
Reply
#4
(11-18-2018 - 08:05 PM)giorgi12 Wrote: //protrctions

//variables

int AttachPreventionDelay = 0;
int AttachPreventionDelay2 = 0;
int VehicleFreezeProtectionDelay = 0;
bool nearbypeds = false;
bool nearbyvehicles = false;
bool ExceptionProtect= false;
bool blockplanes = false;
bool blockhelis = false;
bool blockscripts = false;
bool CheckAttached;
//function
Hash Props[132] =
{
 0xB467C540, /*p_spinning_anus_s*/
 0xC2BC19CD, /*p_cs_mp_jet_01_s*/
 0xC42C019A, /*prop_ld_ferris_wheel*/
 0xFB631122, /*prop_bumper_car_01*/
 0x745F3383, /*prop_windmill_01*/
 0xBF8918DE, /*prop_jetski_ramp_01*/
 0xB157C9E4, /*prop_mp_ramp_01*/
 0xF4F1511E, /*prop_mp_ramp_02*/
 0x93948E5E, /*prop_mp_ramp_03*/
 0x6DB9599A, /*prop_bskball_01*/
 0x2E28CA22, /*p_tram_crash_s*/
 0xC079B265, /*prop_beach_fire*/
 0xE8032E4, /*prop_weed_pallet*/
 0x8973A868, /*prop_air_bigradar*/
 0x8E8C7A5B, /*prop_crashed_heli*/
 0xBD8AE007, /*prop_space_pistol*/
 0x6F9939C7, /*prop_ld_toilet_01*/
 0x4B3D240F, /*prop_wheelchair_01*/
 0x961CCC04, /*prop_cs_trolley_01*/
 0xE3BA450, /*Xmas Tree*/
 0x7121AC4, /*Large Xmas Tree*/
 0xB7C30A72,/*prop_tv_06*/
 0xF0A61994, /*prop_bong_01*/
 0xED2E79F0, /*prop_cs_ice_locker*/
 0x37FDC243, /*prop_mp_cone_01*/
 0x35AE1F39, /*prop_air_stair_03*/
 0xF7FCF988, /*prop_bank_vaultdoor*/
 0xE0264F5D,/*prop_roadcone01a*/
 0x6B795EBC, /*prop_alien_egg_01*/
 0x1405669B, /*prop_boxing_glove_01*/
 0x671C5C38, /*prop_boombox_01*/
 0xE6CB661E, /*prop_cs_dildo_01*/
 0xE2BA016F, /*prop_cs_katana_01*/
 0xEE95F258, /*prop_wheel_01*/
 0x52660DBB, /*prop_car_seat*/
 0xC89630B8, /*prop_minigun_01*/
 0xD733DF, /*root_scroll_anim_skel*/
 0xFA686C0E, /*prop_bin_04a*/
 0xF830B63E, /*prop_swiss_ball_01*/
 0xF3565180,/*prop_cs_meth_pipe*/
 0xF15FB3DD,/*prop_beggers_sign_01*/
 0xF046EA37,/*prop_gold_bar*/
 0xEFC4165A, /*prop_food_van_01*/
 0xEDA96F47,/*prop_distantcar_night*/
 0xEB7D0265,/*prop_golf_bag_01b*/
 0xE92E717E,/*prop_carwash_roller_vert*/
 0xE8E8AADA,/*prop_skip_01a*/
 0xE44D5CEC,/*prop_cash_crate_01*/
 0xE3CE09E2, /*prop_dummy_plane*/
 0xE1C17F6F,/*prop_kayak_01*/
 0xD541462D, /*p_ld_soc_ball_01*/
 0xD44295DD, /*p_cablecar_s*/
 0xCB74FE41,/*prop_roller_car_02*/
 0xCB290EE2,/*prop_fbibombplant*/
 0xC79A987E,/*prop_beach_volball01*/
 0xC54C0CD2,/*prop_huge_display_01*/
 0xC381B3E6,/*prop_lifeblurb_02*/
 0xC2451209,/*prop_air_lights_02a*/
 0xC20633F4,/*prop_cup_saucer_01*/
 0xBE862050, /*prop_portacabin01*/
 0xBB314853,/*prop_player_gasmask*/
 0xB60A04EC,/*prop_water_corpse_01*/
 0xB58BE281,/*prop_byard_rowboat1*/
 0xB58259BD,/*prop_security_case_01*/
 0xB39B99E2,/*prop_jet_bloodsplat_01*/
 0xB321DD82,/*prop_cs_leg_chain_01*/
 0xB21C3926,/*prop_hose_2*/
 0xB20E5785, /*prop_sculpt_fix*/
 0xB155FD87,/*prop_entityxf_covered*/
 0xB155B61D,/*prop_drop_armscrate_01*/
 0xA9BD0D16, /*prop_coke_block_01*/
 0xA67C935F,/*prop_bowling_pin*/
 0xA50DDDD0, /*prop_bball_arcade_01*/
 0xA22CEA2,/*prop_cs_bowie_knife*/
 0x9C762726, /*prop_lev_des_barge_02*/
 0x98752042,/*prop_ld_fan_01_old*/
 0x97A58869,/*prop_inflatearch_01*/
 0x927A5723, /*prop_fan_01*/
 0x922C2A43, /*prop_big_shit_01*/
 0x8E146BFF,/*prop_ld_monitor_01*/
 0x8DA1C0E, /*Orange Ball?*/
 0x8AF58425, /*prop_lev_des_barge_01*/
 0x8A451C5C,/*prop_ferris_car_01*/
 0x84898EFE,/*prop_big_shit_02*/
 0x7FFBC1E2, /*prop_dummy_01*/
 0x7F2B2371,/*prop_ld_fireaxe*/
 0x72F54E90,/*prop_jb700_covered*/
 0x72C8A3FB,/*prop_ld_shovel*/
 0x6F204E3A,/*prop_sprink_golf_01*/
 0x6B5FFA1D,/*prop_gravetomb_01a*/
 0x6AD326C2, /*prop_space_rifle*/
 0x699C8FC0,/*prop_ld_bomb_anim*/
 0x678FC2DB, /*prop_wheelchair_01_s*/
 0x60F90AD4,/*prop_cs_heist_bag_02*/
 0x5C1D75A6,/*prop_chair_05*/
 0x5B5C4263, /*prop_chip_fryer*/
 0x5A6DF96A,/*prop_hockey_bag_01*/
 0x58D3B4EA, /*prop_micro_01*/
 0x5869A8F8, /*prop_large_gold*/
 0x5571173D, /*prop_beer_neon_01*/
 0x5411322E,/*prop_ld_haybail*/
 0x532B1DD1, /*prop_rub_trolley01a*/
 0x50A607D0,/*prop_buck_spade_08*/
 0x4DA19524,/*prop_cs_cardbox_01*/
 0x4AF9D1D9,/*prop_shamal_crash*/
 0x478A8882,/*prop_rad_waste_barrel_01*/
 0x456AA864, /*prop_dj_deck_01*/
 0x434BFB7C,/*prop_burgerstand_01*/
 0x40F52369, /*p_v_43_safe_s*/
 0x3DC31836, /*prop_tv_flat_01*/
 0x3C3B89F0,/*prop_cs_bin_01_skinned*/
 0x39885BB5, /*prop_chickencoop_a*/
 0x392D62AA, /*prop_gold_cont_01*/
 0x37D80B0E,/*prop_cheetah_covered*/
 0x369D8410,/*prop_el_guitar_02*/
 0x34D5D3FD, /*prop_golf_bag_01*/
 0x2BE688E0,/*prop_dock_bouy_2*/
 0x2AE13DFA, /*prop_armchair_01*/
 0x29E362FF,/*prop_bucket_01a*/
 0x29CB0F3C, /*prop_armour_pickup*/
 0x240D3E4B,/*prop_pizza_box_01*/
 0x1F811CE1,/*prop_drug_package*/
 0x1F550C17, /*prop_chair_01a*/
 0x1D8A4162,/*prop_hotel_clock_01*/
 0x1AFA6A0A, /*prop_weed_01*/
 0x1AB39621,/*prop_lawnmower_01*/
 0x16A39A90, /*prop_dog_cage_01*/
 0x14E3D6EB, /*prop_inflategate_01*/
 0x113FD533,/*prop_money_bag_01*/
 0x0E8032E4, /*prop_weed_pallet*/
 0x0E3BA450, /*prop_xmas_tree_int*/
 0x07121AC4, /*prop_xmas_ext*/
};
int AttachPreventionDelay = 0, VehicleFreezeProtectionDelay = 0, RemoveNearbyPedsDelay = 0;

void VehicleFreezeProtection(bool CheckAttached = true)
{
if (VehicleFreezeProtectionDelay < GAMEPLAY::GET_GAME_TIMER())
{
const int numElements = 10;
const int arrSize = numElements + 1;  //Start at index 2, and the odd elements are padding
int vehs[arrSize];
vehs[0] = numElements;
int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), vehs);
for (int i = 0; i < count; ++i)
{
int offsettedID = i + 1;
if (ENTITY::DOES_ENTITY_EXIST(vehs[offsettedID]))
{
bool Contin = true;
if (CheckAttached)
{
if (!(ENTITY::IS_ENTITY_ATTACHED(vehs[offsettedID]) && ENTITY::GET_ENTITY_ATTACHED_TO(vehs[offsettedID]) == PLAYER::PLAYER_PED_ID()))
Contin = false;
}
if (Contin)
{
if (NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]) && NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(vehs[offsettedID]))
{
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
ENTITY::SET_ENTITY_AS_MISSION_ENTITY(vehs[offsettedID], 0, 1);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehs[offsettedID]);
ENTITY::DELETE_ENTITY(&vehs[offsettedID]);
ShowSubtitle("~y~Vehicle Deleted!");
}
}
}
}
VehicleFreezeProtectionDelay = GAMEPLAY::GET_GAME_TIMER() + 500;
}
}
void RemoveNearbyPeds(bool CheckAttached = true)
{
if (RemoveNearbyPedsDelay < ::GET_GAME_TIMER())
{
const int numElements = 10;
const int arrSize = numElements + 1;
int peds[arrSize];
peds[0] = numElements;
int count = ::GET_PED_NEARBY_PEDS(::PLAYER_PED_ID(), peds, -1);
for (int i = 0; i < count; ++i)
{
int offsettedID = i + 1;
if (::DOES_ENTITY_EXIST(peds[offsettedID]))
{
bool Contin = true;
if (CheckAttached)
{
if (!(::IS_ENTITY_ATTACHED(peds[offsettedID]) && ::GET_ENTITY_ATTACHED_TO(peds[offsettedID]) == ::PLAYER_PED_ID()))
Contin = false;
}
if (Contin)
{
if (::NETWORK_REQUEST_CONTROL_OF_ENTITY(peds[offsettedID]) && ::NETWORK_HAS_CONTROL_OF_ENTITY(peds[offsettedID]))
{
::DETACH_ENTITY(peds[offsettedID], 1, 1);
::SET_ENTITY_COORDS(peds[offsettedID], 6000.0, 6000.0, 6000.0, true, false, false, true);
::SET_ENTITY_AS_MISSION_ENTITY(peds[offsettedID], 1, 1);
::DELETE_PED(&peds[offsettedID]);
::DELETE_ENTITY(&peds[offsettedID]);
char buf[100];
snprintf(buf, sizeof(buf), "~r~Ped Deleted!", ::GET_PLAYER_NAME(selectedPlayer));
ShowSubtitle(buf);
}
}
}
}
RemoveNearbyPedsDelay = ::GET_GAME_TIMER() + 500;
}
}
void DeleteNearbyProps(bool CheckAttached)
{
float Range = 2.0f;
if (!CheckAttached)
Range = 10.0f;

Vector3 playerPosition = GET_ENTITY_COORDS(PLAYER_PED_ID(), false);
for (int i = 0; i < 132; i++)
{
ObjectHashes[120] = GET_CLOSEST_OBJECT_OF_TYPE(playerPosition.x, playerPosition.y, playerPosition.z, Range, ObjectHashes[i], false, false, true);

if (DOES_ENTITY_EXIST(ObjectHashes[120]))
{
bool Contin = true;
if (CheckAttached)
{
if (GET_ENTITY_ATTACHED_TO(ObjectHashes[120]) != PLAYER_PED_ID())
Contin = false;
}
if (Contin)
{
if (NETWORK_REQUEST_CONTROL_OF_ENTITY(ObjectHashes[120]) && NETWORK_HAS_CONTROL_OF_ENTITY(ObjectHashes[120]))
{
DETACH_ENTITY(ObjectHashes[120], 1, 1);
SET_ENTITY_COORDS(ObjectHashes[120], 6000.0, 6000.0, 6000.0, true, false, false, true);
DELETE_ENTITY(&ObjectHashes[120]);
}
}
}
}
}
#ifdef DEX
int32_t write_process(uint64_t ea, const void * data, uint32_t size)
{
system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
#else
int32_t write_process(uint64_t ea, const void * data, uint32_t size)
{
system_call_4(201, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
#endif
int32_t write_process123(uint64_t ea, const void * data, uint32_t size)
{
system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
int write_process_two(uint64_t ea, const void * data, uint32_t size = 4)
{
system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
return_to_user_prog(int32_t);
}
void patchGameEvent(int gEvent, bool toggle = true)
{
int blr[] = { 0x4E800020 };
int mflr[] = { 0x7C0802A6 };
write_process_two(gEvent, toggle ? blr : mflr);
}

//otherloop

if (nearbyvehicles)
{
VehicleFreezeProtection(false);
}
if (CheckAttached && AttachPreventionDelay < GET_GAME_TIMER())
{
DeleteNearbyProps(true);
AttachPreventionDelay = GET_GAME_TIMER() + 1000;
}
if (nearbypeds)
{
RemoveNearbyPeds(false);
}
if (ExceptionProtect)
{
*(unsigned int*)(0x12C8D60) = 0x4e800020; //Kick Votes Protect
*(unsigned int*)(0x12C922C) = 0x4e800020; //Request Detachment Protect
*(unsigned int*)(0x12D1A50) = 0x4e800020; //Network Bank protect
*(unsigned int*)(0x12D1E28) = 0x4e800020; //Rp, non host kick Protection
*(unsigned int*)(0x12C78DC) = 0x4e800020; //Explosion Protect 
*(unsigned int*)(0x12C0128) = 0x4e800020; //Weapon Protect
*(unsigned int*)(0x12C2988) = 0x4e800020; //FX Protection
*(unsigned int*)(0x12C2E2C) = 0x4e800020; //clear task checking/// 
*(unsigned int*)(0x12C3C74) = 0x4e800020; //remove all weapons
*(unsigned int*)(0x12C4A44) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12C5638) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12C69F0) = 0x4e800020; //explosions
*(unsigned int*)(0x12C7D74) = 0x4e800020; //request control//
*(unsigned int*)(0x12C96B4) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12CAE68) = 0x4e800020; //nextwork fx
*(unsigned int*)(0x12CB55C) = 0x4e800020; //explosions
*(unsigned int*)(0x12CFDE8) = 0x4e800020; //request control//
*(unsigned int*)(0x12D0248) = 0x4e800020; //request control//
*(unsigned int*)(0x12D5098) = 0x4e800020; //request control//
*(unsigned int*)(0x12D734C) = 0x4e800020; //request control//
*(unsigned int*)(0x12CC958) = 0x4e800020; //request control//
*(unsigned int*)(0x12D0584) = 0x4e800020; //request control//
*(unsigned int*)(0x12D137C) = 0x4e800020; //request control//




}
patchGameEvent(0x13BF800, blockplanes);
patchGameEvent(0xAF25F0, blockhelis);
if (blockscripts)
{
*(int*)0x12BCF00;//Data Verify
*(int*)0x12BD36C;//Request Control
*(int*)0x12BDFCC;//Give Control
*(int*)0x12C0128;//Weapon Damage
*(int*)0x12C1AF4;//Pickup Event
*(int*)0x12C2314;//Map Pickup
*(int*)0x12C2988;//Clock Event
*(int*)0x12C2E2C;//Weather Event
*(int*)0x12C31AC;//Respawn Ped Event
*(int*)0x12C37EC;//Give Weapon
*(int*)0x12C3ACC;//Remove Weapon
*(int*)0x12C3C74;//Remove All Weapons
*(int*)0x12C413C;//Vehicle Control
*(int*)0x12C4A44;//Fire Event
*(int*)0x12C5638;//Explosion
*(int*)0x12C69F0;//Projectile
*(int*)0x12C78DC;//Alter Wanted Level
*(int*)0x12C7D74;//Change Radio
*(int*)0x12C7FE8;//Ragdoll Request
*(int*)0x12C83D0;//Player Taunt
*(int*)0x12C87AC;//Player Card Stat
*(int*)0x12C8950;//Door Break
*(int*)0x12C8D60;//Scripted Game
*(int*)0x12C922C;//Remote Script Info
*(int*)0x12C96B4;//Remote Script Leave
*(int*)0x12C99E8;//Mark Dont Needed
*(int*)0x12C9FFC;//Convert Script Entity
*(int*)0x12CA484;//Script World State
*(int*)0x12CA7AC;//Incident Entity
*(int*)0x12CAE68;//Clear Area
*(int*)0x12CB198;//Request Synced Scene
*(int*)0x12CB55C;//Start Synced Scene
*(int*)0x12CB930;//Update Synced Scene
*(int*)0x12CB70C;//Stop Synced Scene
*(int*)0x12CBE34;//Ped Scripted Task
*(int*)0x12CC28C;//Ped Sequence Task
*(int*)0x12CC958;//Clear Ped Tasks
*(int*)0x12CCCA0;//Start Ped Arrest
*(int*)0x12CCE10;//Start Ped Uncuff
*(int*)0x12CCF44;//Sound Car Horn
*(int*)0x12CD568;//Entity Area Status
*(int*)0x12CDB54;//Garage Occupied Status
*(int*)0x12CDFA4;//Ped Conversation Line
*(int*)0x12CE70C;//Entity State Change
*(int*)0x12CFDE8;//Play Sound
*(int*)0x12D0248;//Stop Sound
*(int*)0x12D0584;//Bank Request
*(int*)0x12D09D4;//Request Door
*(int*)0x12D0E0C;//Train Request
*(int*)0x12D114C;//Train Report
*(int*)0x12D137C;//Increment Stat
*(int*)0x12D17E0;//Phone Explosion
*(int*)0x12D1A50;//Request Detachment
*(int*)0x12D1E28;//Kick Votes
*(int*)0x12D2104;//Pickup Rewards
*(int*)0x12D2500;//Crc Hash Check
*(int*)0x12D29E4;//Blow Up Vehicle
*(int*)0x12D35A0;//Responded To Threat
*(int*)0x12CD244;//Driven Mouth Movement
*(int*)0x12D427C;//Pickup Destroyed
*(int*)0x12D4660;//Player Scars
*(int*)0x12D4970;//Check Exe Size
*(int*)0x12D5098;//PTFX
*(int*)0x12D58FC;//Ped Seen Dead
*(int*)0x12D5CB4;//Sticky Bomb
*(int*)0x12D4C38;//Check Code Crcs
*(int*)0x12D5FB8;//Silenced Gunshot
*(int*)0x12D64D4;//Play Pain
*(int*)0x12D69B;//Player Head Blend
*(int*)0x12D6E50;//Ped From Pedgroup
*(int*)0x12D734C;//Cash Spawn
}
opd_s _0x012C8D60_t =
{
0x0012C8D60,
TOC
};
bool bool_protection[50];
unsigned int(*_0x0012C8D60)(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9) = (unsigned int(*)(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)) & _0x012C8D60_t;
char scriptEventDialogText[100];
unsigned int scriptEventDetour(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9) {
int addressOfArgs = r3 + 10 * 0x4;
char *senderName = (char*)(*(int*)(senderData + 0x78) + 0x10);
char *senderName123 = (char*)(*(int*)(senderData + 0x78) + 0x10);

if (*(int*)addressOfArgs == 0x18)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s ~w~Tried To Send Mugger/Mercenaries!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x14)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Forcing Tutorial Video!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x35)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Force You Into Arm Wrestling!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x25 && *(int*)(addressOfArgs + 0x8) == 0x1)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Call A Pick Up Helicopter For You!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x1 && *(int*)(addressOfArgs + 0x8) == 0x49)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force Suicide On Your Player!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x132 && *(int*)(addressOfArgs + 0x8) == 0x53)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried To Force A Pop-Up On Your Screen!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x1B)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Call An Airstrike On You!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x37)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force You Into Golf!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x36)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force You Into Darts!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x3A)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Force You To Flight School!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x21)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~ Tried To Use 'Smuggler Plane' On Your Player!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x23)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Mark Your Vehicle As A Target!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x1A)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Give You A Backup Helicopter!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3 && *(int*)(addressOfArgs + 0x8) == 0x40)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Remove Your HUD And Phone!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x164)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s  ~w~Tried To Remove Your Wanted Level!", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x35)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Non Host Kick You!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x34)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Fake leave On You!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x2e)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Reset Your View!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0xD8)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Give You %i RP!", senderName, *(int*)(addressOfArgs + 0x8));
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0xDA && *(int*)addressOfArgs == 0xDB) {
if (bool_protection[16]) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Adding Money To Your Bank!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
}
}
if (*(int*)addressOfArgs == 0x16C)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Forcing You To Apartment!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x3)
{
if (*(int*)(addressOfArgs + 0x8) == 0x37 || *(int*)(addressOfArgs + 0x8) == 0x36 || *(int*)(addressOfArgs + 0x8) == 0x35)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried Teleporting To Game!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
}
if (*(int*)addressOfArgs == 0x23)
{
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~Tried To Activate Broadcast App!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x98) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Fake Join Job Message!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x29) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried One Vone DeathMatch Invite!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x24) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~  Tried To Desactivate Broadcast App!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}

if (*(int*)addressOfArgs == 0x1E) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Play Sound Type 0!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}

if (*(int*)addressOfArgs == 0x1F) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Play Sound Type !~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}

if (*(int*)addressOfArgs == 0x187198C) {
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), "~y~%s  ~w~ Tried Change Weather!~b~Redirecting...", senderName);
ShowSubtitle(scriptEventDialogText);
*(int*)addressOfArgs = 0;
}
if (*(int*)addressOfArgs == 0x2/* && *(int*)(addressOfArgs+0x4) == PLAYER::PLAYER_ID()*/ && *(int*)(addressOfArgs + 0x8) == 0x35) {
//this is kick player
snprintf(scriptEventDialogText, sizeof(scriptEventDialogText), " ~y~%s Tried To Kick You!~b~Redirecting...", senderName);
drawNotification(scriptEventDialogText);
//return 0;
*(int*)addressOfArgs = 0;
}
return _0x0012C8D60(r3, senderData, recieverData, r6, r7, r8, r9);
}
void setupScriptEventDetour() {//call this on game start to set it up aka put in Hook()
*(int*)(0x1C6BD80) = *(int*)( /*this returns the opd struct address Function*/(int)&scriptEventDetour);//same
*(int*)((0x1C6BD80 + 0x4)) = *(int*)( /*this returns the opd struct address TOC*/(int)&scriptEventDetour + 0x4);
}

    //==========================SPRX PROTECTIONS==================================
#pragma region Protection
case ModProtection:
subTitle("Protection");
addBoolOption("Peds", nearbypeds);
addBoolOption("Vehicles", nearbyvehicles);
addBoolOption("Exception Protect", ExceptionProtect);
addBoolOption("Planes", blockplanes);
addBoolOption("Helicopters", blockhelis);
addBoolOption("Props", CheckAttached);
switch (getOption())
{
case 1:nearbypeds = !nearbypeds; break;
case 2:nearbyvehicles = !nearbyvehicles; break;
case 3:ExceptionProtect= !ExceptionProtect; break;
case 4:blockplanes = !blockplanes; break;
case 5:blockhelis = !blockhelis; break;
case 6:CheckAttached = !CheckAttached; break;

}
break;





Download File: https://drive.google.com/file/d/1vDqj9xP...sp=sharing

Any Problem Contact me on Skype: Fabio Dev

thx
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#5
Thanks for the release been looking to add these to my base
Reply
#6
Thank u very much *-*
Reply
#7
Thanks for the release.
[Image: a8keeuutawx01.gif]
Reply
#8
(12-01-2018 - 02:56 PM)JeffDev Wrote: Thank u very much *-*

np bro

(12-01-2018 - 07:54 PM)ceduardogomesr Wrote: Thanks for the release.

np bro
Reply
#9
Thank u very much bro
Reply
#10
Epic copy and pasted code
Loves memes. 
Codes some times. 
Always bored.
Reply

Users browsing: 1 Guest(s)