Jump to content

Ped Scripting in C++


GhostTaker40

Recommended Posts

Posted

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
 

Posted

theres mods on community giving peds extra health and arming them, as well as targeting players.

 

for extra health

https://community.multitheftauto.com/index.php?p=resources&s=details&id=1604

 

 

couldnt find the one for the attacking ped but its somewhere along the lines of "nemesis" or "boss"

Paid Roleplay Mapper/Server Management - Message on forums or Discord for info

Fluent with Owlgaming Code. Discord message for paid full set-ups and help

My Discord: 5150#5150 (or .5150)

 

Monky Gaming Roleplay/Adventure Discord 
(English players and servers interested in collaborating or partnering message me)

https://discord.gg/SFBUHknpxy

Posted
On 10/3/2016 at 6:17 AM, loki2143 said:

The best resource for the attacking peds imo is slothbot

https://community.multitheftauto.com/index.php?p=resources&s=details&id=672

(ayyy)

 

yeah thats good but slothbot doesnt run on its own, you need something else with it

Paid Roleplay Mapper/Server Management - Message on forums or Discord for info

Fluent with Owlgaming Code. Discord message for paid full set-ups and help

My Discord: 5150#5150 (or .5150)

 

Monky Gaming Roleplay/Adventure Discord 
(English players and servers interested in collaborating or partnering message me)

https://discord.gg/SFBUHknpxy

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...