Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- //keys
- using System.Windows.Forms;
- //gta stuff
- using GTA;
- using GTA.Native;
- using GTA.Math;
- namespace Mod_name_was_here
- {
- public class AIstartUP : Script
- {
- public AIstartUP()
- {
- LoadSettings();
- Tick += OnTick;
- KeyDown += OnKeyDown;
- }
- private void LoadSettings()
- {
- UI.ShowSubtitle("Custom Mod Installed!", 5000);
- //call fun
- }
- private void OnTick(object sender, EventArgs e)
- {
- }
- private void OnKeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.J)
- {
- RemoveAllPeds();
- }
- }
- private void RemoveAllPeds()
- {
- /*
- * STREAMING::SET_PED_POPULATION_BUDGET(false);
- STREAMING::SET_VEHICLE_POPULATION_BUDGET(false);
- GAMEPLAY::CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, true);
- GAMEPLAY::CLEAR_AREA_OF_VEHICLES(0, 0, 0, 10000, true, true, true, true, true);
- */
- Function.Call(Hash.SET_PED_POPULATION_BUDGET, false);
- Function.Call(Hash.SET_VEHICLE_POPULATION_BUDGET, false);
- Function.Call(Hash.CLEAR_AREA_OF_PEDS, 0, 0, 0, 10000, true);
- Function.Call(Hash.CLEAR_AREA_OF_VEHICLES, 0, 0, 0, 10000, true, true, true, true, true);
- UI.ShowSubtitle("Attempting to Remove All peds and cars!", 5000);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement