Quantcast

Jump to content

» «
Photo

Help Prisoner's wont fight me

No replies to this topic
Rattlercreed
  • Rattlercreed

    Player Hater

  • Members
  • Joined: A week ago
  • United-Kingdom

#1

Posted A week ago Edited by Rattlercreed, A week ago.

Hi All

 

I have found my problem it's due to being in a restricted zone. How can i turn it off?

 

I new to the forums and to Modding GTA V. I'm trying to create my own Prison mod but I can't seem to get the prisoner to fight back.

 

This is how I've done it.

   Private Sub Setup_Prisoners()

        player_group = GTA.Native.Function.Call(Of Integer)(Hash.GET_HASH_KEY, "PLAYER")
        inmatesB_group = GTA.Native.Function.Call(Of Integer)(Hash.GET_HASH_KEY, "COUGAR")

        prisoners = World.GetAllPeds("s_m_y_prismuscl_01")
        For Each prisoner As Ped In prisoners
            prisoner.RelationshipGroup = inmatesB_group
            prisoner.Task.FightAgainst(Game.Player.Character)
            prisoner.AlwaysKeepTask = True
        Next

        prisoners = World.GetAllPeds("s_m_y_prisoner_01")
        For Each prisoner As Ped In prisoners
            prisoner.RelationshipGroup = inmatesB_group
            prisoner.Task.FightAgainst(Game.Player.Character)
            prisoner.AlwaysKeepTask = True
        Next

        prisoners = World.GetAllPeds("u_m_y_prisoner_01")
        For Each prisoner As Ped In prisoners
            prisoner.RelationshipGroup = inmatesB_group
            prisoner.Task.FightAgainst(Game.Player.Character)
            prisoner.AlwaysKeepTask = True
        Next

    End Sub

I've tried other ways to without any success. I have even gave them guns but they wont even shot at me. Any help will be great full. 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users