Pie015 Posted January 8, 2013 Share Posted January 8, 2013 Hi guys, this is my first time posting in this section and first time making a script with Visual Basic using Visual Studio 2012. I got bored with GTA San Andreas coding, I wanted to try GTA IV's coding and here is my first script, it's extremely simple but nothing happens when I press F12 though Imports SystemImports GTAImports System.Windows.FormsImports System.DrawingPublic Class SpawnSWATPilot Inherits Script Private myPed As Ped Public Sub New() If Me.isKeyPressed(Keys.F12) Then myPed = World.CreatePed("M_Y_NHELIPILOT", Player.Character.Position.Around(5.0)) End If myPed.Weapons.MP5.Ammo = 50 myPed.Weapons.MP5.Select() myPed.StartKillingSpree(alsoAttackPlayer:=False) End SubEnd Class Thank you in advance! Link to comment Share on other sites More sharing options...
AgentWD40 Posted January 12, 2013 Share Posted January 12, 2013 check out julionib's vb tuts post - http://www.gtaforums.com/index.php?showtopic=529784 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now