Jump to content

Custom Backup 3.3

   (23 reviews)

9 Screenshots

After a month of development, Custom Backup is finally here!

Custom backup gives you a new level of control in LSPDFR. The key feature of this mod is regionally customized backup, allowing you to set a different response for any area on the map. For any named area of the game (like "Rockford Hills", "Los Santos International Airport", "Sandy Shores", etc.) you can completely customize every level of response just like the built-in backup.xml. The syntax of the CustomBackup.xml file is very similar to the built-in backup.xml, but has numerous additions to increase your control over the game: 

  • Set a chance for anything! Peds, vehicles, and vehiclesets now all take a chance attribute which controls how likely they are to be chosen. (The built-in backup.xml only lets you set a chance on peds.)
  • Configure vehicle extras, liveries, and colors! You can now set any color you want for any response vehicle, opening up a whole new level of customization for unmarked units. Vehicle extra configuration also works reliably, whereas it seems to have some issues in the built-in backup.xml. 
  • Cop weapon selection! Set a list of weapons to give your backup units, set the probability for each weapon, and decide whether you want them to pick one at random or always get the most powerful one. 
  • Set spawn distance range for each vehicle entry! Every vehicle entry can have a minimum and maximum spawn distance set. This allows for additional realism by making certain units spawn closer or further away. NOOSE SWAT probably isn't just hanging out around the corner, so make them drive in from a mile away. On top of Mt. Chiliad your backup will probably be coming from a long distance, but in Downtown there's probably local patrol units very near by. Your imagination is the limit for leveraging these settings. 
  • Code 2 response with lights! Let's be honest, how often do cops really respond "code 2" with no lights? You can now configure your Code 2 units to respond with lights (but no siren), or to respond with their lights off but turn them on once they arrive and park on scene. YouTube video demo.
  • Integration with Better EMS: Download and install Better EMS, and you can call for an advanced EMS response through the Custom Backup menu. 
  • Integration with Police Smart Radio: Call for backup from your radio! Call Code 2 or Code 3 local backup, or Pursuit and Air Support units.

 

Installation instructions are included in the download. Basic installation is pretty easy; just make sure to choose a CustomBackup.xml file to use and put it in place. Advanced usage of the CustomBackup.xml file is explained in great detail in the documentation PDF. 

INSTRUCTIONS TO OVERRIDE DEFAULT LSPDFR BACKUP MENU:

To completely disable the built-in LSPDFR backup menu and use the custom menu instead, follow these instructions.

  • Edit CustomBackupLocations.ini. Set these settings:
    • CustomBackupMenuKey=B
    • CustomBackupModifier=None
    • OverrideLSPDFRBackup=false
  • Go to the GTA V settings menu 
  • Under Keybindings, go to GTA Online section
  • Change "Look At" from B to something you don't use, like the numpad period

Thank you to @vladimir850 for figuring this out!

 

 

PLEASE DO NOT ASK FOR SUPPORT IF YOU HAVE NOT READ THE DOCUMENTATION PDF! THERE ARE EXPLICIT INSTRUCTIONS IN THE PDF ON WHAT TO DO IF YOU ARE HAVING TROUBLE!

Requirements: 

  • RPH 0.45+ (compiled for 0.51)
  • LSPDFR 0.3.1
  • RageNativeUI 1.4.1 

 

Please post suggestions, support requests, etc in the forum thread: 

To share your CustomBackup.xml or get ideas on what customizations to make, visit the sharing thread: 

Special thanks to everybody who made this mod possible:

  • The LSPDFR team, especially Sam and LMS
  • All contributors to the LSPDFR-API examples on Github: 
    • Alexguirre, Albo1125, LMS, Stealth22, Stray, LtFlash, and LukeD
  • Everybody who helped answer questions about the API and development on the forums, especially @Albo1125 and @alexguirre
  • The original beta testing team for this mod:

 

SPECIAL THANK YOU to members of the Parks Benefactor Program who have supported my mod development! Their generous donations have helped to make continued updates to my modifications possible. Particular thanks to the Old Faithful donors who have supported me with noteworthy donations: Kilyin, anters, Sergeant Anderson, winglesschip, Dsonke1, and PolGuin255. You can join the Parks Benefactor Program by donating to support my mods, and to get early beta access to new modifications and updates to my existing modifications.


What's New in Version 3.3

Released

New in 3.3:

  • Updated for RPH 0.51 (recommended); compatible with RPH 0.45+
  • Integration with Police Smart Radio (call Code 2, Code 3, Pursuit, and Air Support backup from Smart Radio)
  • Compatible with Better EMS 3.0
  • Assorted bug fixes and API enhancements

 

Old changelogs:

Spoiler

New in 3.2:

  • Updated for RPH 0.45 and newer
  • Minor bugfixes
  • Compatibility with Better EMS 2.1 and ParksTools updates
  • New API methods added for developers

New in 3.1:

  • Updated for RPH 0.42
  • Added integration with LSPDFR+ statistics
  • Improved dependency checking

New in 3.0.0:

  • Updated for RPH 0.39. Compatible with RPH 0.38. 
  • Integrated with Better EMS - call advanced EMS response from the backup menu.
  • Added support for vehicle mods: Configure spoilers, bumpers, wheels, etc. 
  • Improved detection of XML file errors to reduce support issues.
  • Improved developer API, giving developers access to full response capabilities. 

Fixed in 2.2.1:

  • Fixed bug in ParksTools.dll causing some vehicles to spawn all black. 
  • Fixed bug where calling for suspect transport when no suspect is arrested did not display a notification to the user. 
  • Updated dependency check to expect RPH 0.38. Plugin still loads with older versions but is not guaranteed to work and is not tested. 

New in 2.2.0:

  • Added support for spawning boats as backup units, and added Coast Guard to additional backup entries in stock CustomBackup.xml.
  • Added support for GTA V RGBA color hashes in color definitions of XML file.
  • Added support for ped texture variants in XML file, and improved detection and compatibility of ped texture changes.
  • If officers are more than 30m from you when they arrive on scene, they will just wander the area instead of running to you. Prevents them from running all around the map if you call backup and then move. 
  • Split some common functionality for other mods in development into separate ParksTools.dll
  • Lots of internal code cleanup
  • Updated for RageNativeUI 1.3.1 and RPH 0.37+.

New in 2.0.1:

  • Fixed a minor bug where dependency version check fails if file doesn't exist at all

New in 2.0.0:

  • Added ability to define custom backup menu entries, letting you add any unit type you want.
  • Added "additional options" menu to prevent main backup menu from getting too crowded.
  • Added support for sending custom prisoner transport unit depending on location using the Arrest Manager API by Albo1125.
  • Added developer API.
  • Improved code for dismissing backup units.
  • Added dependency check for RageNativeUI, RagePluginHook, and LSPDFR.
  • Lots of bug fixes and code cleanup. 
  • Compiled against RPH 0.37

 

 

Mod created by PNWParksFan
Thank you to the RPH and LSPDFR teams!
Thank you to all contributors to the LSPDFR API examples on GitHub
Uses RageNativeUI by Alexguirre
Thank you to everybody who helped answer questions in the forums, especially Albo1125 and Alexguirre
Special thanks to the beta testers: Play3r2, The Loot, CriticalBrit, Ray3501, and Kilyin



User Feedback

Recommended Comments



I have in the backup menu ingame greyed out the air backups, i don't know why. I put in the notepad file area ALL because I want air units to respond wherever I might be. Am i doing it right? 

Share this comment


Link to comment
Share on other sites

I'm having issues, I want to put insurgent and marines to come in case I call Noose backup. What am I doing wrong? 

<NooseSWAT>
    <BackupRegion nickname="NOOSE HQ">
      <BackupAreas>
        <Area>_ALL_</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle>insurgent</Vehicle>
        </Vehicles>
        <Peds>
          <Ped prop_head="0">s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="4" max="4" />
      </VehicleSet>
    </BackupRegion>
    <Weapons>
          <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
          <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
          <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
          <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
        </VehicleSet>
    </BackupRegion>
  </NooseSWAT>-->

 

Share this comment


Link to comment
Share on other sites
13 minutes ago, LtRob said:

I'm having issues, I want to put insurgent and marines to come in case I call Noose backup. What am I doing wrong? 


<NooseSWAT>
    <BackupRegion nickname="NOOSE HQ">
      <BackupAreas>
        <Area>_ALL_</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle>insurgent</Vehicle>
        </Vehicles>
        <Peds>
          <Ped prop_head="0">s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="4" max="4" />
      </VehicleSet>
    </BackupRegion>
    <Weapons>
          <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
          <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
          <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
          <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
        </VehicleSet>
    </BackupRegion>
  </NooseSWAT>-->

 

I spy an XML close comment just hanging out at the end there: "-->"

Did you try using an XML validator as recommended in the documentation?

37 minutes ago, PoliceWomen said:

exactly where this file needs to go ???

You don't need to put the xlsx file anywhere. It's just provided as a reference for developing your own custom backup entries. 

Share this comment


Link to comment
Share on other sites
12 minutes ago, PNWParksFan said:

I spy an XML close comment just hanging out at the end there: "-->"

Did you try using an XML validator as recommended in the documentation?

You don't need to put the xlsx file anywhere. It's just provided as a reference for developing your own custom backup entries. 

I don't know why when I try to extract the documentation with 7zip it says error so I can't read it. Btw that close comment was already there, I didn't put it.

 

This is the ini file:

// This is the .ini file for Custom Backup Locations. 
// This file affects how the plugin operates. To set custom 
// backup locations, edit custombackup.xml

[Keybindings]

// Sets the keys used to open the backup menu
// For a list of valid key names, see 
// https://msdn.microsoft.com/en-us/library/system.windows.forms.keys(v=vs.110).aspx

//CustomBackupMenuKey=Space
//CustomBackupModifier=LControlKey

CustomBackupMenuKey=Space
CustomBackupModifier=LControlKey

OverrideLSPDFRBackup=true

// If you use a controller, you can choose the button which activates
// the custom backup menu. For a list of valid button names, see
// http://docs.ragepluginhook.net/html/558BC34.htm. 

//CustomBackupControllerButton=DPadRight
//CustomBackupControllerModifier=None

CustomBackupControllerButton=DPadUp
CustomBackupControllerModifier=None


// If enabled, when pressed, outputs debug of parsed 
// custom backup XML file

DebugKey=None

[Backup]

// Whether or not to use the custom backup for code 2 and code 3 response
// Pursuit backup will always use the custom backup
// LSPDFR doesn't offer any way to use the AI for code 2/3 response though, 
// so if the simple response behavior this mod implements is unsatisfactory for you, 
// you can default to using the built-in LSPDFR response fore code 2 and/or code 3. 
// If you set either to false, custom vehicles will only respond for pursuits. 
// If you set code 2 to false, the siren settings below will still be applied though. 

UseCustomCode2=true
UseCustomCode3=true

// true to play dispatch audio when units are sent
// false to not play dispatch audio

PlayAudio=true

// Code2Response can be set to lights or none
// LIGHTS = responds with lights on, but siren sounds off
// ARRIVAL = turns on lights on arrival
// NONE = responds with lights and sirens turned off

Code2Response = LIGHTS

// Display Zone Info menu option
// Adds menu option to custom backup menu which will show you 
// the information for the current zone you are in. 
// Helpful for creating your own backup customization file. 
ZoneInfo = false

[Cleanup]
// Peds and vehicles spawned by custom backup are made persistent
// so that they don't despawn unexpectedly. When a ped or vehicle
// is no longer needed, it is dismissed, making it non-persistent 
// and allowing GTA to despawn it. 
// These options determine when entities spawned by this plugin 
// will be dismissed. All cops (and their vehicles) spawned 
// during pursuits will be dismissed immediately when the pursuit 
// is terminated, so these options only apply to code 2/3 backup. 


// Distance in meters. When you get this distance from peds 
// spawned by custom backup, they will be dismissed
DismissDistance = 500

// Time in seconds. Cops will be dismissed this many seconds
// after arriving on scene after being called code 2/3
// Set to 0 to make cops stay around indefinitely or until
// you are at least as far away as DismissDistance above. 
DismissTime = 0

[Weapons]

// All officers will be issued this weapon when spawned by custom backup
// Recommended to be some type of handgun like pistol or combat pistol
StandardIssue = WEAPON_PISTOL

// When custom backup officers arrive on scene for a code 2 or 3 call, 
// how they should choose which weapon to draw. 
// BEST means they will draw the "best" weapon, as chosen by GTA
// RANDOM means they will choose a random weapon in their inventory
DrawMethod = BEST





















// DO NOT CHANGE
[Debug]
FJAHFHWKCHIASIFFH=false

 

Edited by LtRob

Share this comment


Link to comment
Share on other sites

Could you please go to the discussion thread, upload a copy of your CustomBackup.xml file, CustomBackupLocations.ini, RagePluginHook.log, and a detailed description of the issue you're having, what you expect should happen, and what's actually happening? I'll take a look at it later today. Thanks. 

The documentation shouldn't need to be extracted... it's just a PDF. Unzip the whole download, then the PDF should open up as normal. I just tried it myself, so it shouldn't be an issue with the download. If you're having extraction issues try re-downloading the mod. 

37 minutes ago, LtRob said:

I don't know why when I try to extract the documentation with 7zip it says error so I can't read it. Btw that close comment was already there, I didn't put it.

 

This is the ini file:

Spoiler




// This is the .ini file for Custom Backup Locations. 
// This file affects how the plugin operates. To set custom 
// backup locations, edit custombackup.xml

[Keybindings]

// Sets the keys used to open the backup menu
// For a list of valid key names, see 
// https://msdn.microsoft.com/en-us/library/system.windows.forms.keys(v=vs.110).aspx

//CustomBackupMenuKey=Space
//CustomBackupModifier=LControlKey

CustomBackupMenuKey=Space
CustomBackupModifier=LControlKey

OverrideLSPDFRBackup=true

// If you use a controller, you can choose the button which activates
// the custom backup menu. For a list of valid button names, see
// http://docs.ragepluginhook.net/html/558BC34.htm. 

//CustomBackupControllerButton=DPadRight
//CustomBackupControllerModifier=None

CustomBackupControllerButton=DPadUp
CustomBackupControllerModifier=None


// If enabled, when pressed, outputs debug of parsed 
// custom backup XML file

DebugKey=None

[Backup]

// Whether or not to use the custom backup for code 2 and code 3 response
// Pursuit backup will always use the custom backup
// LSPDFR doesn't offer any way to use the AI for code 2/3 response though, 
// so if the simple response behavior this mod implements is unsatisfactory for you, 
// you can default to using the built-in LSPDFR response fore code 2 and/or code 3. 
// If you set either to false, custom vehicles will only respond for pursuits. 
// If you set code 2 to false, the siren settings below will still be applied though. 

UseCustomCode2=true
UseCustomCode3=true

// true to play dispatch audio when units are sent
// false to not play dispatch audio

PlayAudio=true

// Code2Response can be set to lights or none
// LIGHTS = responds with lights on, but siren sounds off
// ARRIVAL = turns on lights on arrival
// NONE = responds with lights and sirens turned off

Code2Response = LIGHTS

// Display Zone Info menu option
// Adds menu option to custom backup menu which will show you 
// the information for the current zone you are in. 
// Helpful for creating your own backup customization file. 
ZoneInfo = false

[Cleanup]
// Peds and vehicles spawned by custom backup are made persistent
// so that they don't despawn unexpectedly. When a ped or vehicle
// is no longer needed, it is dismissed, making it non-persistent 
// and allowing GTA to despawn it. 
// These options determine when entities spawned by this plugin 
// will be dismissed. All cops (and their vehicles) spawned 
// during pursuits will be dismissed immediately when the pursuit 
// is terminated, so these options only apply to code 2/3 backup. 


// Distance in meters. When you get this distance from peds 
// spawned by custom backup, they will be dismissed
DismissDistance = 500

// Time in seconds. Cops will be dismissed this many seconds
// after arriving on scene after being called code 2/3
// Set to 0 to make cops stay around indefinitely or until
// you are at least as far away as DismissDistance above. 
DismissTime = 0

[Weapons]

// All officers will be issued this weapon when spawned by custom backup
// Recommended to be some type of handgun like pistol or combat pistol
StandardIssue = WEAPON_PISTOL

// When custom backup officers arrive on scene for a code 2 or 3 call, 
// how they should choose which weapon to draw. 
// BEST means they will draw the "best" weapon, as chosen by GTA
// RANDOM means they will choose a random weapon in their inventory
DrawMethod = BEST





















// DO NOT CHANGE
[Debug]
FJAHFHWKCHIASIFFH=false


 

 

 

 

Share this comment


Link to comment
Share on other sites
5 hours ago, LtRob said:

I'm having issues, I want to put insurgent and marines to come in case I call Noose backup. What am I doing wrong?


<NooseSWAT>
    <BackupRegion nickname="NOOSE HQ">
      <BackupAreas>
        <Area>_ALL_</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle>insurgent</Vehicle>
        </Vehicles>
        <Peds>
          <Ped prop_head="0">s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="4" max="4" />
      </VehicleSet> <!-- here -->
    </BackupRegion>
    <Weapons>
          <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
          <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
          <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
          <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
        </VehicleSet> <!-- and here -->
    </BackupRegion>
  </NooseSWAT>-->

 

I might be wrong, but I dont think there should be 2 </VehicleSet>'s 

Share this comment


Link to comment
Share on other sites
6 minutes ago, fireboy6117 said:

I want to add @PNWParksFancars for Parks services to the woods does anyone have the locations for the area

Look for the entries in the sample XML files for park areas. You can also look in the excel file for a list of all the region names. 

Share this comment


Link to comment
Share on other sites

Cannot get this to work. I followed the instructions exactly but the modified backup menu does not show in game. I tried both replacing the default menu as well as a custom key, does not work. Log shows that the plugin loads without error but the menu does not work in game.

I used the stock custombackup.xml.

Share this comment


Link to comment
Share on other sites
1 hour ago, download500 said:

Cannot get this to work. I followed the instructions exactly but the modified backup menu does not show in game. I tried both replacing the default menu as well as a custom key, does not work. Log shows that the plugin loads without error but the menu does not work in game.

I used the stock custombackup.xml.

 

On 2/29/2016 at 11:30 AM, PNWParksFan said:

Could you please go to the discussion thread, upload a copy of your CustomBackup.xml file, CustomBackupLocations.ini, RagePluginHook.log, and a detailed description of the issue you're having, what you expect should happen, and what's actually happening?

 

Share this comment


Link to comment
Share on other sites
8 minutes ago, GoldMeteora said:

When I call for EMS support LSPDFR crashes anyone having idea what's causing it?

 

On 2/29/2016 at 11:30 AM, PNWParksFan said:

Could you please go to the discussion thread, upload a copy of your CustomBackup.xml file, CustomBackupLocations.ini, RagePluginHook.log, and a detailed description of the issue you're having, what you expect should happen, and what's actually happening? I'll take a look at it. 

 

 

Share this comment


Link to comment
Share on other sites

Awesome mod! If I may suggest a few things: How about an option in the backup menu to cancel responding units and/or dismiss the backup thats already onscene, or notifications for when a unit arrives at the location like FinKone has on the Police Radio mod. Also, when I pull up the backup menu, LSPDFR's interaction menu pops up over it for about half a second then dissapears, not sure if this is just me.

Share this comment


Link to comment
Share on other sites
5 hours ago, TdePadua said:

Also, when I pull up the backup menu, LSPDFR's interaction menu pops up over it for about half a second then dissapears, not sure if this is just me.

That's how the plugin "overrides" the default backup menu (for when you set the same key/button): opening the interaction menu closes the LSPDFR backup menu, so opening and closing that leaves you with only the Custom Backup menu, in theory. In practice, it can be a bit weird with how inputs are detected..

Share this comment


Link to comment
Share on other sites

Can someone tell me if this script is good? When I call backup only lspdfr backup arrives, not the custom ones, but the custom backup menu shows up ingame.

Spoiler

<CustomBackup>
 <LocalPatrol>
    <BackupRegion nickname="Parks">
      <BackupAreas>
        <Area>WVine</Area>
        <Area>Hors</Area>
        <Area>Vcana</Area>
        <Area>Beach</Area>
        <Area>Vesp</Area>
        <Area>TEXTI</Area>
        <Area>Termina</Area>
        <Area>STRAW</Area>
        <Area>Rockf</Area>
        <Area>Richm</Area>
        <Area>RANCHO</Area>
        <Area>DelSol</Area>
        <Area>ZP_ORT</Area>
        <Area>PBOX</Area>
        <Area>PBluff</Area>
        <Area>Noose</Area>
        <Area>Murri</Area>
        <Area>Morn</Area>
        <Area>SKID</Area>
        <Area>Mirr</Area>
        <Area>Stad</Area>
        <Area>AirP</Area>
        <Area>Koreat</Area>
        <Area>LegSqu</Area>
        <Area>LosPuer</Area>
        <Area>LMesa</Area>
        <Area>Hawick</Area>
        <Area>Golf</Area>
        <Area>Elysian</Area>
        <Area>EBuro</Area>
        <Area>East_V</Area>
        <Area>DTVine</Area>
        <Area>Downt</Area>
        <Area>DeLBe</Area>
        <Area>DelPe</Area>
        <Area>Davis</Area>
        <Area>Cypre</Area>
        <Area>CMSW</Area>
        <Area>ChamH</Area>
        <Area>Burton</Area> 
        <Area>Banning</Area>
        <Area>Movie</Area>
        <Area>Alta</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle>police</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police3</Vehicle
          <Vehicle>police4</Vehicle>
          <Vehicle>pranger</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="90">s_m_y_cop_01</Ped>
          <Ped chance="10">s_f_y_cop_01</Ped>
        </Peds>
        <NumPeds min="2" max="2" />
      </VehicleSet>
    </BackupRegion>
</LocalPatrol>
<NooseSWAT>
    <BackupRegion nickname="NOOSE HQ">
    <BackupAreas>
        <Area>_ALL_</Area>
    </BackupAreas>
    <VehicleSet>
        <Vehicles>
            <Vehicle>insurgent</Vehicle>
                        <Vehicle>crusader</Vehicle>
        </Vehicles>
        <Peds>
            <Ped prop_head="0">s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="2" max="4" />
        <Weapons>
            <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
            <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
            <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
            <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
    </VehicleSet>
</BackupRegion>
<BackupRegion nickname="Everywhere">
      <BackupAreas>
        <Area>_ALL_</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle>barracks</Vehicle>
        </Vehicles>
        <Peds>
          <Ped>s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="6" max="8" />
        <Weapons>
          <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
          <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
          <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
          <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
      </VehicleSet>
    </BackupRegion>
 </NooseSWAT>
</CustomBackup>

 

Share this comment


Link to comment
Share on other sites
1 hour ago, LtRob said:

Can someone tell me if this script is good? When I call backup only lspdfr backup arrives, not the custom ones, but the custom backup menu shows up ingame.

Your POLICE3 vehicle line is missing a closing bracket.

Several things:

  • Is that long list of areas supposed to be the whole city? You should really just use LosSantos as an area name instead.
  • Logging will be better if you make unique nicknames for each entry.
  • Assuming you've finished setting them up, your two NooseSWAT entries are conflicting because they are both set to _ALL_, so the last one will never be chosen. Add the additional one as another vehicle set and then it will work.

Share this comment


Link to comment
Share on other sites
22 hours ago, The Loot said:

Your POLICE3 vehicle line is missing a closing bracket.

Several things:

  • Is that long list of areas supposed to be the whole city? You should really just use LosSantos as an area name instead.
  • Logging will be better if you make unique nicknames for each entry.
  • Assuming you've finished setting them up, your two NooseSWAT entries are conflicting because they are both set to _ALL_, so the last one will never be chosen. Add the additional one as another vehicle set and then it will work.

I didn't know about the ''LosSantos'' thing for Areas. Can I do it also for the other parts of the map (county etc)? What are the codenames?

Share this comment


Link to comment
Share on other sites
On 4/3/2016 at 4:16 PM, The Loot said:

Your POLICE3 vehicle line is missing a closing bracket.

Several things:

  • Is that long list of areas supposed to be the whole city? You should really just use LosSantos as an area name instead.
  • Logging will be better if you make unique nicknames for each entry.
  • Assuming you've finished setting them up, your two NooseSWAT entries are conflicting because they are both set to _ALL_, so the last one will never be chosen. Add the additional one as another vehicle set and then it will work.
Spoiler

<CustomBackup>
 <LocalPatrol>
    <BackupRegion nickname="Parks">
      <BackupAreas>
        <Area>LosSantos</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle>police</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police3</Vehicle
          <Vehicle>police4</Vehicle>
          <Vehicle>pranger</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="90">s_m_y_cop_01</Ped>
          <Ped chance="10">s_f_y_cop_01</Ped>
        </Peds>
        <NumPeds min="2" max="2" />
      </VehicleSet>
    </BackupRegion>
    <BackupRegion nickname="SSerer">
      <BackupAreas>
        <Area>LosSantosCounty</Area>
        <Area>BlaineCounty</Area>
        <Area>SanAndreas</Area>
      </BackupAreas>
      <VehicleSet chance="80">
        <Vehicles>
          <Vehicle>sheriff</Vehicle>
          <Vehicle>sheriff2</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="90">s_m_y_sheriff_01</Ped>
          <Ped chance="10">s_f_y_sheriff_01</Ped>
        </Peds>
        <NumPeds min="2" max="2" />
      </VehicleSet>
      <VehicleSet chance="20">
            <Vehicle>fbi</Vehicle>
            <Vehicle>police4</Vehicle>
       </Vehicles>
       <Peds>
          <Ped chance="50">s_m_m_fibsec_01</Ped>
          <Ped chance="50">s_m_m_ciasec_01</Ped>
       </Peds>
       <NumPeds min="1" max="1" /> 
<Weapons>
    <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
    <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
    <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
    <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
</Weapons>
       </VehicleSet>
    </BackupRegion>
</LocalPatrol>
<NooseSWAT>
    <BackupRegion nickname="NOOSE HQ">
    <BackupAreas>
        <Area>_ALL_</Area>
    </BackupAreas>
    <VehicleSet chance="50">
        <Vehicles>
            <Vehicle>insurgent</Vehicle>
                        <Vehicle>crusader</Vehicle>
        </Vehicles>
        <Peds>
            <Ped prop_head="0">s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="2" max="4" />
        <Weapons>
            <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
            <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
            <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
            <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
    </VehicleSet>
       <VehicleSet chance="50">
        <Vehicles>
          <Vehicle>barracks</Vehicle>
        </Vehicles>
        <Peds>
          <Ped>s_m_y_marine_03</Ped>
        </Peds>
        <NumPeds min="6" max="8" />
        <Weapons>
          <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
          <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
          <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
          <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
        </Weapons>
      </VehicleSet>
    </BackupRegion>
 </NooseSWAT>
</CustomBackup>

I finished with the script but still not working

Share this comment


Link to comment
Share on other sites
14 hours ago, LtRob said:

I didn't know about the ''LosSantos'' thing for Areas. Can I do it also for the other parts of the map (county etc)? What are the codenames?

The largest areas, for the city, counties, and certain unclaimed areas, are all listed in the "Counties" column in the spreadsheet: "LosSantos", "LosSantosCounty", "BlaineCounty" and "SanAndreas". For any specific area, either the name in the "Game Name" column or the "Real Area Name" column work for those.

11 hours ago, LtRob said:

I finished with the script but still not working

Still was missing the ">" on the police3 line, and missing a <Vehicles> tag in the set with FIB. Give this a try.

Spoiler

<CustomBackup>
    <LocalPatrol>
        <BackupRegion nickname="Los Santos">
            <BackupAreas>
                <Area>LosSantos</Area>
            </BackupAreas>
            <VehicleSet>
                <Vehicles>
                    <Vehicle>police</Vehicle>
                    <Vehicle>police2</Vehicle>
                    <Vehicle>police3</Vehicle>
                    <Vehicle>police4</Vehicle>
                    <Vehicle>pranger</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped chance="90">s_m_y_cop_01</Ped>
                    <Ped chance="10">s_f_y_cop_01</Ped>
                </Peds>
                <NumPeds min="2" max="2" />
            </VehicleSet>
        </BackupRegion>
        <BackupRegion nickname="Countryside?">
            <BackupAreas>
                <Area>LosSantosCounty</Area>
                <Area>BlaineCounty</Area>
                <Area>SanAndreas</Area>
            </BackupAreas>
            <VehicleSet chance="80">
                <Vehicles>
                    <Vehicle>sheriff</Vehicle>
                    <Vehicle>sheriff2</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped chance="90">s_m_y_sheriff_01</Ped>
                    <Ped chance="10">s_f_y_sheriff_01</Ped>
                </Peds>
                <NumPeds min="2" max="2" />
            </VehicleSet>
            <VehicleSet chance="20">
                <Vehicles>
                    <Vehicle color="black">fbi</Vehicle>
                    <Vehicle color="black">police4</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped chance="50">s_m_m_fibsec_01</Ped>
                    <Ped chance="50">s_m_m_ciasec_01</Ped>
                </Peds>
                <NumPeds min="1" max="1" /> 
                <Weapons>
                    <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
                    <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
                    <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
                    <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
                </Weapons>
            </VehicleSet>
        </BackupRegion>
    </LocalPatrol>
    <NooseSWAT>
        <BackupRegion nickname="Everywhere">
            <BackupAreas>
                <Area>_ALL_</Area>
            </BackupAreas>
            <VehicleSet chance="50">
                <Vehicles>
                    <Vehicle>crusader</Vehicle>
                    <Vehicle>insurgent</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped prop_head="0">s_m_y_marine_03</Ped>
                </Peds>
                <NumPeds min="2" max="4" />
                <Weapons>
                    <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
                    <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
                    <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
                    <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
                </Weapons>
            </VehicleSet>
            <VehicleSet chance="50">
                <Vehicles>
                    <Vehicle>barracks</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped>s_m_y_marine_03</Ped>
                </Peds>
                <NumPeds min="6" max="8" />
                <Weapons>
                    <Weapon chance="100">WEAPON_CARBINERIFLE</Weapon>
                    <Weapon chance="10">WEAPON_HEAVYSNIPER</Weapon>
                    <Weapon chance="10">WEAPON_SMOKEGRENADE</Weapon>
                    <Weapon chance="10">WEAPON_ASSAULTSHOTGUN</Weapon>
                </Weapons>
            </VehicleSet>
        </BackupRegion>
    </NooseSWAT>
</CustomBackup>

I'd suggest getting Notepad++ or similar text editing programs if you aren't using one, as they usually have visual indications when certain code isn't set up correctly.

Edited by The Loot

Share this comment


Link to comment
Share on other sites

Think before you post. Toxic behavior will not be tolerated. Unconstructive, toxic or unnecessarily sarcastic comments will be removed and warnings issued.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...