Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Backup.xml Parser (Add chance tags to vehicles and vehicle sets) 2.1

(0 reviews)

1 Screenshot

This is a simple program I wrote to allow easier configuration of vehicle set chance and Vehicles now too.

I have created a gui now, so you may choose to have the files where ever. 

<VehicleSet chance="66">
                ...</VehicleSet>

<VehicleSet chance="33">
          ...</VehicleSet>

Take the backup.xml the tool creates and place it in your gtav/lspdfr folder if you didn't select that folder initially.  

How to use: 

select your custom backup.xml file, and your output folder then click parse, it should create a new file in the output folder named backup.xml or will overwrite backup.xml if it is contained in the output folder. 

Warning this tool is made for windows only. Since I don't have developer certificate, you will most likely get a windows security prompt when trying to run my program. Simply click more info and run anyway. 

It accepts .xml files only the formatting should be the same as the default backup.xml

with only the addition of vehicle set chance tags and vehicle chance tags. 

Please comment with any bugs you find.

 

What it does exactly:

Since all vehicle sets (within an area) have equal probability it will duplicate vehicle sets in order simulate the chance probabilities. 

eg in the case of nicebackup.xml looking like

<VehicleSet chance="66">

          <Vehicles>
                    <Vehicle chance="70">police</Vehicle>
                    <Vehicle chance="20">police2</Vehicle>
                    <Vehicle chance="10">police3</Vehicle>
                </Vehicles>
                <Peds>
                    <Ped chance="80">s_m_y_cop_01</Ped>  <!-- Chances must add up to 100 -->
                    <Ped chance="20">s_f_y_cop_01</Ped>
                </Peds>
                <NumPeds min="1" max="2" />  <!-- Number of peds that will respond (minimum and maximum) -->
                ...</VehicleSet>

<VehicleSet chance="33">

          "set two content" 
          ...</VehicleSet>

the tool will produce backup.xml looking like

<VehicleSet>

 <Vehicles>

          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police3</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="80">s_m_y_cop_01</Ped>
          <!-- Chances must add up to 100 -->
          <Ped chance="20">s_f_y_cop_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
                ...</VehicleSet>

<VehicleSet>

 <Vehicles>
 
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police2</Vehicle>
          <Vehicle>police3</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="80">s_m_y_cop_01</Ped>
          <!-- Chances must add up to 100 -->
          <Ped chance="20">s_f_y_cop_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
                ...</VehicleSet>

<VehicleSet>

          "set two content" 
          ...</VehicleSet>

parser.PNG

What's New in Version 2.1

Released

Created gui for choosing files.

User Feedback

Recommended Comments

Sopphic

Members

how does this actually work. i input the file and select output location and nothing happens...

leuvenjb

Members

2 hours ago, Play3r2 said:

how does this actually work. i input the file and select output location and nothing happens...

same here

jackscrj

Members Author

are you clicking parse?

added hopefully more clear directions 

" select your custom backup.xml file, and your output folder then click parse, it should create a new file in the output folder named backup.xml or will overwrite backup.xml if it is contained in the output folder.  "

if that doesn't work let me know. 

Sopphic

Members

8 minutes ago, jackscrj said:

are you clicking parse?

added hopefully more clear directions 

" select your custom backup.xml file, and your output folder then click parse, it should create a new file in the output folder named backup.xml or will overwrite backup.xml if it is contained in the output folder.  "

if that doesn't work let me know. 

Yes but what is different about the new file?

 

 

jackscrj

Members Author

its for if you want to add chance tags to vehicle sets or vehicles 

so instead of typing to give police a 80% chance of spawning and police2 a 20% chance

<vehicle>police<vehicle>

<vehicle>police<vehicle>

<vehicle>police<vehicle>

<vehicle>police<vehicle>

<vehicle>police2<vehicle>

 

you can just type

<vehicle chance="80">police<vehicle>

<vehicle chance="20">police2<vehicle>

 

and this tool will convert it to the to the above 5 lines inorder for it to work with lspd .3

Sopphic

Members

Oh I see

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.