Guard The Area 1.3 hotfix
1 463
19
1 463
19
Guard The AREA
A GTA V mod that enhances the security systems by adding dynamic guard spawning, customizable patrols, and realistic security setups in various locations across Los Santos.
Features:
How it Works:
The mod allows you to define specific areas where guards will spawn, each with their own behavior and equipment. Guards can be customized to use different vehicles, weapons, and patrol scenarios, making the environment more dynamic. You can place guards in various areas like military bases, security checkpoints, and other key locations throughout the city.
Example:
For detailed examples on how to configure guards and areas, check out the full example here. The source code is also available at the same Page.
Upcoming:
Additional Ideas:
Adding more dynamic guard scenarios, such as increased alertness during certain times of day or when suspicious activity occurs.
Versioning:
Version 1.0 - "It's Alive!" (Initial Version)
Initial release incorporating the core features of spawning guards and vehicles in designated areas.
Version 1.1 - "Scenario Tasks"
Introduced scenario tasks to guards, enabling behaviors like guarding, looking around, and using flashlights.
Version 1.2 - "Expanded Spawn Types and Tactical Options"
Expanded functionality to include Law Snipers, Roadblocks, and additional vehicle spawn types (helicopter, boat, mounted, vehicles) to enhance tactical deployment options.
Version 1.3 - "Bug Fixes and Spawn Type Refinement" (current)
Addressed null reference exceptions and refined spawn type usage to ensure proper model assignments for each spawn type, preventing vehicles from spawning in inappropriate locations like helipads or boats on land. Implemented dedicated model lists for each spawn type. New spawn types are: plane, mounted, largevehicle, vehicle, helicopter and boat. these can be used. For ped type it's ped.
Hotfix: Fixed guards shooting at you or other even tho when group and relationship is set properly.
A GTA V mod that enhances the security systems by adding dynamic guard spawning, customizable patrols, and realistic security setups in various locations across Los Santos.
Features:
Dynamic Guard System: Guards spawn based on player proximity, offering a more interactive experience.
Multiple Guard Types: Includes a range of guards such as military, police, private security, and more.
Guard Behavior & AI: Intelligent patrols, combat responses, and positioning.
Vehicle Integration: Includes vehicles for patrols, checkpoints, and other security roles.
Customization: XML configuration for guard behavior, loadouts, and spawn points.
How it Works:
The mod allows you to define specific areas where guards will spawn, each with their own behavior and equipment. Guards can be customized to use different vehicles, weapons, and patrol scenarios, making the environment more dynamic. You can place guards in various areas like military bases, security checkpoints, and other key locations throughout the city.
Example:
For detailed examples on how to configure guards and areas, check out the full example here. The source code is also available at the same Page.
Upcoming:
- Guard shift changes to create a more dynamic and realistic security system.
Bug fix: Law peds shooting at the player when the wanted level is set to 0.
Additional Ideas:
Adding more dynamic guard scenarios, such as increased alertness during certain times of day or when suspicious activity occurs.
Versioning:
Version 1.0 - "It's Alive!" (Initial Version)
Initial release incorporating the core features of spawning guards and vehicles in designated areas.
Version 1.1 - "Scenario Tasks"
Introduced scenario tasks to guards, enabling behaviors like guarding, looking around, and using flashlights.
Version 1.2 - "Expanded Spawn Types and Tactical Options"
Expanded functionality to include Law Snipers, Roadblocks, and additional vehicle spawn types (helicopter, boat, mounted, vehicles) to enhance tactical deployment options.
Version 1.3 - "Bug Fixes and Spawn Type Refinement" (current)
Addressed null reference exceptions and refined spawn type usage to ensure proper model assignments for each spawn type, preventing vehicles from spawning in inappropriate locations like helipads or boats on land. Implemented dedicated model lists for each spawn type. New spawn types are: plane, mounted, largevehicle, vehicle, helicopter and boat. these can be used. For ped type it's ped.
Hotfix: Fixed guards shooting at you or other even tho when group and relationship is set properly.
Dodano: styczeń 10, 2025
Ostatnia aktualizacja: 7 dni temu
Last Downloaded: 4 hours ago
60 Komentarzy
Guard The AREA
A GTA V mod that enhances the security systems by adding dynamic guard spawning, customizable patrols, and realistic security setups in various locations across Los Santos.
Features:
How it Works:
The mod allows you to define specific areas where guards will spawn, each with their own behavior and equipment. Guards can be customized to use different vehicles, weapons, and patrol scenarios, making the environment more dynamic. You can place guards in various areas like military bases, security checkpoints, and other key locations throughout the city.
Example:
For detailed examples on how to configure guards and areas, check out the full example here. The source code is also available at the same Page.
Upcoming:
Additional Ideas:
Adding more dynamic guard scenarios, such as increased alertness during certain times of day or when suspicious activity occurs.
Versioning:
Version 1.0 - "It's Alive!" (Initial Version)
Initial release incorporating the core features of spawning guards and vehicles in designated areas.
Version 1.1 - "Scenario Tasks"
Introduced scenario tasks to guards, enabling behaviors like guarding, looking around, and using flashlights.
Version 1.2 - "Expanded Spawn Types and Tactical Options"
Expanded functionality to include Law Snipers, Roadblocks, and additional vehicle spawn types (helicopter, boat, mounted, vehicles) to enhance tactical deployment options.
Version 1.3 - "Bug Fixes and Spawn Type Refinement" (current)
Addressed null reference exceptions and refined spawn type usage to ensure proper model assignments for each spawn type, preventing vehicles from spawning in inappropriate locations like helipads or boats on land. Implemented dedicated model lists for each spawn type. New spawn types are: plane, mounted, largevehicle, vehicle, helicopter and boat. these can be used. For ped type it's ped.
Hotfix: Fixed guards shooting at you or other even tho when group and relationship is set properly.
A GTA V mod that enhances the security systems by adding dynamic guard spawning, customizable patrols, and realistic security setups in various locations across Los Santos.
Features:
Dynamic Guard System: Guards spawn based on player proximity, offering a more interactive experience.
Multiple Guard Types: Includes a range of guards such as military, police, private security, and more.
Guard Behavior & AI: Intelligent patrols, combat responses, and positioning.
Vehicle Integration: Includes vehicles for patrols, checkpoints, and other security roles.
Customization: XML configuration for guard behavior, loadouts, and spawn points.
How it Works:
The mod allows you to define specific areas where guards will spawn, each with their own behavior and equipment. Guards can be customized to use different vehicles, weapons, and patrol scenarios, making the environment more dynamic. You can place guards in various areas like military bases, security checkpoints, and other key locations throughout the city.
Example:
For detailed examples on how to configure guards and areas, check out the full example here. The source code is also available at the same Page.
Upcoming:
- Guard shift changes to create a more dynamic and realistic security system.
Bug fix: Law peds shooting at the player when the wanted level is set to 0.
Additional Ideas:
Adding more dynamic guard scenarios, such as increased alertness during certain times of day or when suspicious activity occurs.
Versioning:
Version 1.0 - "It's Alive!" (Initial Version)
Initial release incorporating the core features of spawning guards and vehicles in designated areas.
Version 1.1 - "Scenario Tasks"
Introduced scenario tasks to guards, enabling behaviors like guarding, looking around, and using flashlights.
Version 1.2 - "Expanded Spawn Types and Tactical Options"
Expanded functionality to include Law Snipers, Roadblocks, and additional vehicle spawn types (helicopter, boat, mounted, vehicles) to enhance tactical deployment options.
Version 1.3 - "Bug Fixes and Spawn Type Refinement" (current)
Addressed null reference exceptions and refined spawn type usage to ensure proper model assignments for each spawn type, preventing vehicles from spawning in inappropriate locations like helipads or boats on land. Implemented dedicated model lists for each spawn type. New spawn types are: plane, mounted, largevehicle, vehicle, helicopter and boat. these can be used. For ped type it's ped.
Hotfix: Fixed guards shooting at you or other even tho when group and relationship is set properly.
Dodano: styczeń 10, 2025
Ostatnia aktualizacja: 7 dni temu
Last Downloaded: 4 hours ago
@eddie0704 yep, if you want more features let me know!
@Midnight Gamer OK!! thx bro :)
@Midnight Gamer Hello bro, I would like to give you a suggestion. I have tried to adjust the SpawnPoint to vehicle and set it to "technical". This will indeed call out a technical, but no one can operate the machine gun on the technical. This is a pity. If the bodyguards can operate the machine gun on the technical, it will be more interesting :)
@eddie0704 oh wait, actually in game ai can use, all the vehicleweapons can be used by the AI but since you need to enable ConfigFlag to let AI use it.
and sure i will do it.
@Midnight Gamer Oh! Really? Then let me study how to enable ConfigFlag, thx bro.
@Midnight Gamer
Hello, I'm glad you updated to version 1.2. I want to report a few bugs to you.
1. Some places where bodyguards were originally generated no longer generate them after updating to version 1.2
2. The bodyguards would attack each other. If I bumped into a bodyguard, they would also attack me. :(
But thank you very much for the update. I will switch back to version 1.1 for the time being.
@Midnight Gamer interesting how does this process work exactly, "enable ConfigFlag" to allow Ai to use certain weapons?
I've been trying to figure out how I can allow ai pilots to use jet flares when being targeted by other missiles.
@nj5050 public void EnableHeliWeapons()
{
// we give and then allow to use them.
helicopter.Driver.SetCombatAttribute(CombatAttributes.PreferAirCombatWhenInAircraft, true); //this flag is set when player is in aircraft
helicopter.Driver.SetCombatAttribute(CombatAttributes.UseVehicleAttackIfVehicleHasMountedGuns, true);
helicopter.Driver.SetCombatAttribute(CombatAttributes.ForceCheckAttackAngleForMountedGuns, true);
helicopter.Driver.SetCombatAttribute(CombatAttributes.UseRocketsAgainstVehiclesOnly, true);
helicopter.Driver.SetCombatAttribute(CombatAttributes.UseVehicleAttack, true);
} This is what default game can achieve about flares I don't know. If it is a weapon for vehicles it should work otherwise try manually. Initially these flag make pilots to use the default weapons like without the use of set_vehicle_weapon native.
@eddie0704 add me in discord: vamp.chan_ so that I can grab details where the issue is + I thought I fixed (only rare cause would be mismatch of guard groups) but anyways you will be my tester haha.
@Midnight Gamer Anyway we can assign a specific scenario to the guards? Like have them sit, drink, lean? Right now this is done randomly, and I get guards walking into walls when I just want them to do any scenario but standing in the same spot.
@Hazekware yes you can, use scenario="name" in spawnpoints attributes. Check GitHub for precise example.
@Midnight Gamer awesome will check that! One more think I know it goes off boundaries, but can you consider making a behaviour option? It's cool to have them has guards/ security, but can we also use them as enemies or peds who will open fire if threatened? That would be awesome.
Only by default michael/franklin guards are bodyguards, rest are security type so any law type will attack you or others when threatened. I'll expand it soon. So that you can setup more things.
@Midnight Gamer Those vehicle properties look enticing, unfortunately for me, I have no idea which SHVDN you got those from, because I can't seem to access them.
@nj5050 it's SHVDN API 3.7.x one (Nightly builds)
I'm confused how do you spawn the guards
@jonavery25 you have to use L button to grab the coordinates where you want to place the guard/vehicle. And it will be stored into a file named PlayerPositions.txt then you have to copy those lines and paste into Areas.xml as per your liking (define a new place or predefined place) and for the guard models use what name is defined in Guards.xml or create new entry as per your want. (Detailed information is in GitHub page, check the Description it has a link)
@Midnight Gamer
Works good, I like that they automatically respawn if they get killed and I go away and return back to area.
Can you add some "continuing loop" option to scenarios.
For example if I use WORLD_HUMAN_SMOKING it "plays it one time" and then ped gets into some default pose.
Maybe also adjustable health and armor amount for each ped/group.
Is there way to make guards friendly/dontkill MP_female model?
I'm using MP_female model and Frank as preset in character swap mod so I tried families_guard, AMBIENT_GANG_FAMILY, FRANK_GUARD but they will attack me if I shot nearby them(not even aiming at anyone)
@Midnight Gamer
I was getting error about DispatchData.xml missing and I didn't know from which mod it was.
So I made blank DispatchData.xml (I'm not coder or anything similar) hoping it will stop bothering me and then I saw on your github you have file with same name. I copied lines from your DispatchData.xml on github and when opened DispatchData.xml in gta5/scripts dir I found following(looks like this mod uses exactly same filename):
DriverJobs V Mod for GTAV
-------------------------
Author: megaz0id aka veocode
Telegram: @vobukhov
Email: me@veocode.ru
HOW TO INSTALL
--------------
These mods are required, make sure you install them first:
- ScriptHookV: http://www.dev-c.com/gtav/scripthookv/
- ScriptHookV .NET: https://github.com/crosire/scripthookvdotnet/releases
- LemonUI (SHVDN3): https://github.com/LemonUIbyLemon/LemonUI/releases
Installation:
- Copy DriverJobs.dll and DriverJobsData folder to GTAV\Scripts
@loginos some people reported me that looping causes the guard to pull up drink, drink one time and throws away 🗿🗿 so I fixed that to do one time. Anyways I'll consider this to loop properly. Also guards can be friendly if you put franklin, michael, trevor or any in group (guards.xml).
For the other comment, actually I was having a testing version of heli dispatch thing and it's not related to any mod, if it gives error related to cannot find then place a dummy file or download the old version it has the dispatchdata.xml you can place it. (That part won't work as I have disabled it for now)