Jump to content

Ped Scripting in C++


GhostTaker40

Recommended Posts

I need some help with scripting some peds like giving them weapons making them powerful etc. heres my code so far.

Imports System
Imports System.Drawing
Imports System.IO
Imports System.Math
Imports System.Text
Imports System.Windows.Forms
Imports GTA
Imports GTA.Math
Imports GTA.Native

Public Class BaseScript
    Inherits Script

    Public Sub New()
        Me.Interval = 5
    End Sub

    Private Sub keyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyDown
        If e.KeyCode = Keys.K Then
            UI.ShowSubtitle("Test")
            World.CreatePed(PedHash.Marine01SMY, Game.Player.Character.GetOffsetInWorldCoords(New Vector3(0, 5, 0)))
            [Function].Call(Hash.ADD_BLIP_FOR_ENTITY)
            


        End If
    End Sub

    Private Sub keyUp(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyUp


    End Sub

    Private Sub general_tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick
    End Sub
End Class
 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...