Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using GTA;
- using GTA.Native;
- using GTA.Math;
- using System;
- using System.Windows.Forms;
- /*
- Bulletproof Script by jedijosh920 for Grand Theft Auto V PC
- Requested by Joe Gillian
- */
- namespace Bulletproof
- {
- public class Main : Script
- {
- private Keys toggleKey = Keys.J; // You can change the key to toggle the mod here.
- private bool isBulletProof;
- public Main()
- {
- KeyDown += OnKeyDown;
- }
- private void OnKeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == toggleKey)
- {
- isBulletProof = !isBulletProof;
- if (isBulletProof)
- {
- Function.Call(Hash.SET_ENTITY_PROOFS, Game.Player.Character, true, false, false, false, false, false, false, false);
- }
- else
- {
- Function.Call(Hash.SET_ENTITY_PROOFS, Game.Player.Character, false, false, false, false, false, false, false, false);
- }
- UI.ShowSubtitle("Player is " + (isBulletProof) ? " ~g~now bulletproof!" : " ~r~not bulletproof.", 2500);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement