Jump to content
The latest updated version of RAGE Plugin Hook, required to play LSPDFR, can be found inside the LSPDFR download. It is not currently available on the RAGE Plugin Hook website.

Custom backup need help with script


LtRob

Recommended Posts

Hi, I downloaded the new version of Custom backup and I'm having problems, the game crashes at startup after the loading screen. Script below any help appreciated

Spoiler

<!-- 

    For the default menu entries like LocalPatrol, NooseAir, etc. you can set
    mainmenu="false" to put that entry on the "additional options" backup menu. 
    By default, all of the regular backup types will be on the main menu if you 
    don't specify the mainmenu attribute. 
    
    To add custom entries to the menu, scroll down towards the end of the file, 
    and look for <CustomMenuEntries>. 

-->

<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">
       <Vehicles>
            <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>
 <StatePatrol>
    <BackupRegion nickname="Parksssss">
      <BackupAreas>
        <Area>LosSantos</Area>
        <Area>LosSantosCounty</Area>
        <Area>BlaineCounty</Area>
        <Area>SanAndreas</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle livery="3">police</Vehicle>
          <Vehicle>policeold1</Vehicle>
          <Vehicle>policeold2</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="90">s_m_y_sheriff_01</Ped>
          <Ped chance="10">s_f_y_sheriff_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
      </VehicleSet>
    </BackupRegion>
</StatePatrol>
<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>
 <CustomMenuEntries>
  <!-- 
    To add a custom menu entry, it must follow the format shown below and have
    all of the attributes specified: 
        name: the name which shows up on the menu for this option. must be unique. 
        default_type: what internal type of backup this is. must be one of
            LocalPatrol, StatePatrol, NooseSWAT, LocalSWAT, LocalAir, NooseAir
        code2: true/false, whether this entry should be enabled for code 2 backup
        code3: true/false, whether this entry should be enabled for code 3 backup
        pursuit: true/false, whether this entry should be enabled for pursuit backup
        mainmenu: if true, the custom entry will go on the main menu. if false, it will
            go on the "additional options" menu. 
            

 

 

 

Link to comment
Share on other sites

The end of the script looks like its missing the --> symbol, or maybe you just forgot to include that in the spolier

EDIT: Its also missing the </CustomBackup> that should be after the <CustomMenuEntries> tag

Edited by Trasheater

Hi

Link to comment
Share on other sites

On 22/03/2016 at 11:40 PM, Trasheater said:

The end of the script looks like its missing the --> symbol, or maybe you just forgot to include that in the spolier

EDIT: Its also missing the </CustomBackup> that should be after the <CustomMenuEntries> tag

Idk why in the OP I didnt' paste everything, here's the full script and I already have the things you mentioned.

Spoiler

<!-- 

    For the default menu entries like LocalPatrol, NooseAir, etc. you can set
    mainmenu="false" to put that entry on the "additional options" backup menu. 
    By default, all of the regular backup types will be on the main menu if you 
    don't specify the mainmenu attribute. 
    
    To add custom entries to the menu, scroll down towards the end of the file, 
    and look for <CustomMenuEntries>. 

-->

<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">
       <Vehicles>
            <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>
 <StatePatrol>
    <BackupRegion nickname="Parksssss">
      <BackupAreas>
        <Area>LosSantos</Area>
        <Area>LosSantosCounty</Area>
        <Area>BlaineCounty</Area>
        <Area>SanAndreas</Area>
      </BackupAreas>
      <VehicleSet>
        <Vehicles>
          <Vehicle livery="3">police</Vehicle>
          <Vehicle>policeold1</Vehicle>
          <Vehicle>policeold2</Vehicle>
        </Vehicles>
        <Peds>
          <Ped chance="90">s_m_y_sheriff_01</Ped>
          <Ped chance="10">s_f_y_sheriff_01</Ped>
        </Peds>
        <NumPeds min="1" max="2" />
      </VehicleSet>
    </BackupRegion>
</StatePatrol>
<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>
 <CustomMenuEntries>
  <!-- 
    To add a custom menu entry, it must follow the format shown below and have
    all of the attributes specified: 
        name: the name which shows up on the menu for this option. must be unique. 
        default_type: what internal type of backup this is. must be one of
            LocalPatrol, StatePatrol, NooseSWAT, LocalSWAT, LocalAir, NooseAir
        code2: true/false, whether this entry should be enabled for code 2 backup
        code3: true/false, whether this entry should be enabled for code 3 backup
        pursuit: true/false, whether this entry should be enabled for pursuit backup
        mainmenu: if true, the custom entry will go on the main menu. if false, it will
            go on the "additional options" menu. 
            
    Inside the <MenuEntry> tags, you can put in however many <BackupRegion> entries you 
    want, following the same format as described for the rest of this file. 
    
  -->
    </MenuEntry>
  </CustomMenuEntries>
</CustomBackup>

 

 

 

Link to comment
Share on other sites

You should only reply here to ask for more information from LtRob or to answer the person's issue.

Reply to this thread only to offer help or assistance to LtRob.
If you want support, create your own thread in the appropriate forum. Non-relevant replies, derailing posts, "me too", disinformation and other support requests will be removed without warning.

Guest
You can no longer reply to this support topic as it was started over a year ago. Please make a new thread.


×
×
  • Create New...