Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
      3. The Armadillo Inn
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

jedijosh920

[V|REL] Spawn Random Bodyguard

Recommended Posts

jedijosh920

aWTMc5r.jpg



Download Links:



https://www.gta5-mods.com/scripts/spawn-random-bodyguard



http://www.mediafire.com/download/jwd9wlm8ocrh179/SpawnBodyguardsV1.1.asi




To install, place .asi file in root folder of your game with the ScriptHookV.dll



Press "End" Key in-game to spawn a random bodyguard with a pistol.



You can only have about 7 bodyguards, the other peds spawned after that will still protect you but won't follow.



Peds spawned are related to where you are at. (Ex: Fort Zancudo = Army Bodyguards)



Thanks to funmw2 for helping me with the relationship group problem.




Updates:


v1.1

-----------------------------------------


- Fixed Relationship Groups.

- Added protective combat hatred task.

- Fixed aggressive peds after spawning more than 7.

Edited by jedijosh920

Share this post


Link to post
Share on other sites
hristi

Ohh can't wait to try this. Thanks!

Share this post


Link to post
Share on other sites
Bolcksta

Do they get in your vehicle as well?

 

 

 

 

 

 

Edit: Do a scan report on Virus total please and post results.

 

My scanner reported something fishy about this file.

Edited by Bolcksta

Share this post


Link to post
Share on other sites
LordVaktus

Hello,

 

Great work on this mod -- I've been wanting bodyguards in GTA V for PC since release.

 

I would really appreciate it if you could add the ability to spawn SWAT (Tactical Police) bodyguards, instead of random bodyguards.

 

I'm sure it's possible through a simple line edit, and once done, could you reply with the link?

 

I would do this myself, however, I don't have permission from you to decompile it considering it's your work.

 

Thanks in advance.


Do they get in your vehicle as well?

 

 

 

 

 

 

Edit: Do a scan report on Virus total please and post results.

 

My scanner reported something fishy about this file.

VirusTotal Scan Result (0 / 57):

 

https://www.virustotal.com/en/file/24985c3a65caf704f5e322d4b3dc0dfd944fdeae6234ffd0a2e3c40287f361bc/analysis/1429985995/

Share this post


Link to post
Share on other sites
mis009

Download Link:

http://www.mediafire.com/download/lvocbl1xad5jzq9/SpawnBodyguard.asi

To install, place .asi file in root folder of your game with the ScriptHookV.dll

Press "End" Key in-game to spawn a random bodyguard with a pistol.

I believe you can only have about 8 bodyguards, after that they will just spawn as regular peds who are somewhat aggressive.

If anyone could make a good video for me on YouTube to post on here, that would be great!

 

Very nice indeed i wanna try lol...

Share this post


Link to post
Share on other sites
Hurrikane

Link when put through my virus scanner is deleting said file...

Edited by Hurrikane

Share this post


Link to post
Share on other sites
Beer_Prince

thank you dude .... and once again sorry. you know

Share this post


Link to post
Share on other sites
a_tavenner

Something weird happened to me after installing this mod, which may or may not have something to do with the mod: upon pressing "end", around five bodyguards spawned at once, which shouldn't be the case according to the description. I tried to shoot them dead to try again, but the mod won't let you (jedijosh, I think you should change that). So I threw a grenade at the floor, which did the trick. Seconds later, the game froze up. Ctrl + Alt + Esc didn't help. All of a sudden, this screen shows up (not my photo, it's someone else's). First time it ever did. It accused a problem with some file that I can't remember except for its name prominently containing the word "watchdog".

 

Again, this never happened to me before, and the script seemed to malfunction in-game upon pressing "end", so... yeah.

 

Some info: I'm on Windows 8.1. The Social Club window says it's updated to version 335.2 but the in-game splash screen says build 335.1, which has me a bit confused (I do know the game has been updated with a 170mb patch the last time). I get some crashes to desktop rarely, but nothing that freezes up the entire computer (that only happened once, in the launch day version, without the above screen showing up -- I just had to hard reboot). I can use Ctrl + Alt + Esc fine, and sometimes the computer itself will swiftly say it's not working and let me easily close the process. This mod came right before a hard, unprecedented crash.

 

If any more info is required, let me know.

Edited by a_tavenner

Share this post


Link to post
Share on other sites
Atharos

I'm so happy with this mod that i registered just to say thanks and to give some feedback

It would be nice if you could select god mode for your bodyguards, another thing that would be great is that if they could use the guns of the valkyrie for example, i tried to go with them in the insurgent, and they can use its turret although with a really slow rate of fire, but not the valkyrie's or savage's, in the valkyrie, they aim with the guns, but they never seem to shoot

Edited by Atharos

Share this post


Link to post
Share on other sites
K0ol-G-R4P

Works very well.

 

Hopefully in the next release its not random peds.

 

Here's the video you requested.

 

 

Share this post


Link to post
Share on other sites
Beer_Prince

Works very well.

 

Hopefully in the next release its not random peds.

 

Here's the video you requested.

 

 

really cool! :D

Share this post


Link to post
Share on other sites
Deuce Deuce

Awesome mod! However, after a certain amount of "spawns" the game won't allow any more. Was this intentional?

Edited by Deuce Deuce

Share this post


Link to post
Share on other sites
kallas

Awesome release! Can you release source code?

Share this post


Link to post
Share on other sites
Skyprone

 

Awesome release! Can you release source code?

 

 

Im new here and new to modding in general. I've looked through the native DB and I've stripped this from a forums post.

 

ped = clone_ped(player_ped_id());

int group = get_player_group(player_id());

set_ped_as_group_member(ped, group);

task_combat_hated_targets_arou­nd_ped(0, 1000.0f, 0);

give_delayed_weapon_to_ped(ped­, Hash("weapon_pistol"));

set_ped_keep_task(ped, true);

 

How would I go about turning this into a .asi file and binding a key to execute it?

 

LOL I posted that on a YouTube video. You cant UNTIL he releases the SDK which is probably never, the way i got partially this to work is thru cheat engine

 

The SDK was released, by the way.

Edited by Skyprone

Share this post


Link to post
Share on other sites
AgentWD40

Awesome mod! However, after a certain amount of "spawns" the game won't allow any more. Was this intentional?

 

maybe he didn't add remove dead bodys native, should help with freeing up ped pool.

 

SET_PED_GENERATES_DEAD_BODY_EVENTS(ped, true);

 

or

 

MARK_CHAR_AS_NO_LONGER_NEEDED(ped);

Edited by AgentWD40

Share this post


Link to post
Share on other sites
Deuce Deuce

 

Awesome mod! However, after a certain amount of "spawns" the game won't allow any more. Was this intentional?

 

maybe he didn't add remove dead bodys native, should help with freeing up ped pool.

 

SET_PED_GENERATES_DEAD_BODY_EVENTS(ped, true);

 

or

 

MARK_CHAR_AS_NO_LONGER_NEEDED(ped);

 

 

Thanks. Is there any way to reduce crashes using this script as well? I gather it's probably a CPU overload issue; but my thinking is that perhaps freeing up "dead" peds will put less pressure on the CPU / GPU and minimize crashing (I haven't actually tried adding this in yet though).

 

Also, would there be any reason why the bodyguards don't fill up the max capacity in some vehicles? For example, I can fit a full crew in the Insurgent, but in planes / jets with max capacities of 8+ only 2 will actually enter.

Share this post


Link to post
Share on other sites
Hurrikane

qFrVISF.jpgrChHkSw.jpgXhsCgQL.jpgZBK3sby.jpgim9FLcn.jpgTcFBwO0.jpg

Edited by Hurrikane

Share this post


Link to post
Share on other sites
Prywatne

XhsCgQL.jpg

 

Nice :lol::lol:

Share this post


Link to post
Share on other sites
Ivey

Here's our try at showcasing the plugin. :)

 

 

Share this post


Link to post
Share on other sites
ragemeter

Does it spawn different models of npcs depending on where your character is at?

Share this post


Link to post
Share on other sites
Ivey

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

Share this post


Link to post
Share on other sites
Acekiller.45

 

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

 

Yes It will spawn the most common ped where you are like soldiers at the base ect GX4Bdmt.jpg?1db4djTt.jpg?1

Edited by Acekiler

Share this post


Link to post
Share on other sites
xxRichter

Download Links:

http://www.modmy5.com/en/mods/009db644

https://www.gta5-mods.com/scripts/spawn-random-bodyguard

http://www.mediafire.com/download/lvocbl1xad5jzq9/SpawnBodyguard.asi

To install, place .asi file in root folder of your game with the ScriptHookV.dll

Press "End" Key in-game to spawn a random bodyguard with a pistol.

I believe you can only have about 8 bodyguards, after that they will just spawn as regular peds who are somewhat aggressive.

If anyone could make a good video for me on YouTube to post on here, that would be great!

 

Ha! Good work though, never thought you was gonna release it.

You should help me with my mods soon, finishing a mod menu.

Edited by TJGM

Share this post


Link to post
Share on other sites
gta4police

jedijosh920, could you make the extra bodyguards follow you on another vehicle when your vehicle is already full? Could you also make the option to adjust the spacing of your team formation? so they won't look like sticking to you like a glue?

Share this post


Link to post
Share on other sites
ubtri

Instead of spawning all 8 bodyguards at once, can you edit this to spawn 1 bodyguard everytime you press the Delete key (up to 8 times)?

 

Also, I made a video!

 

Edited by ubtri

Share this post


Link to post
Share on other sites
Microbots

Is it true the game crashes if you aim at one of the bodyguards and they start shooting at each other?

Share this post


Link to post
Share on other sites
Fun 2

Hmm I assume one of the natives you use is limited to 8.

We will have to check which one so we can make the extra bodyguards follow you.

Share this post


Link to post
Share on other sites
hristi

Instead of spawning all 8 bodyguards at once, can you edit this to spawn 1 bodyguard everytime you press the Delete key (up to 8 times)?

This. Hope you can implement this soon and the limit of bodyguards.

Share this post


Link to post
Share on other sites
frostygta

 

 

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

 

Yes It will spawn the most common ped where you are like soldiers at the base ect GX4Bdmt.jpg?1db4djTt.jpg?1

 

Hey

 

How did you manage to spawn this is the game (the heist vehicle) could you let me know what mod please?

Share this post


Link to post
Share on other sites
r34ld34l

 

 

 

Does it spawn different models of npcs depending on where your character is at?

 

Yea, that's how it seems.

 

Yes It will spawn the most common ped where you are like soldiers at the base ect GX4Bdmt.jpg?1db4djTt.jpg?1

 

Hey

 

How did you manage to spawn this is the game (the heist vehicle) could you let me know what mod please?

 

Pretty sure I saw it in Native Trainer, could be wrong.

Share this post


Link to post
Share on other sites

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

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.