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 agency not working.


Recommended Posts

I am trying to get a Rockford Hills PD agency which just patrols Rockford and Burton. I have edited the agency.xml, backup.xml and regions.xml to include the RHPD (see below).

When I call for backup in game the LSPD, instead of the RHPD, still responds even though I have removed the zones from the city region. The RHPD also isn't included in the backup menu. Am I missing something? Am I doing something wrong?

 

Regions.xml:

<Regions>
  <Region>
  <Name>Rockford</Name>
  <Zone>ROCKF</Zone>
  <Zone>BURTON</Zone>
  </Region>
</Regions>

 

Backup.xml:

<BackupUnits>
    <LocalPatrol>
      <Rockford>
        <Agency>rhpd</Agency>
      </Rockford>
    </LocalPatrol>
</BackupUnits>

 

Agency.xml:

Spoiler

<Agencies>
    <Agency>
        <Name>Rockford Hills Police Department</Name>
        <ShortName>RHPD</ShortName>
        <ScriptName>rhpd</ScriptName>
        <Inventory>default</Inventory>
        <TextureDictionary>dia_police</TextureDictionary>
        <TextureName>dia_police</TextureName>
        <Loadout>
            <Name>Patrol Unit</Name>
            <Vehicles>
                <Vehicle>rhpolice</Vehicle>
                <Vehicle>rhpolice2</Vehicle>
                <Vehicle>rhpolice3</Vehicle>
            </Vehicles>
            <Peds>
                <!-- 70% chance of male peds -->
                <Ped chance="60" outfit="lspd_cop.m_base" inventory="patrol">mp_m_freemode_01</Ped> <!-- Specifically the "base" variation, with no rank insignia -->
                <Ped chance="10" outfit="lspd_cop" inventory="patrol_stun">mp_m_freemode_01</Ped> <!-- Any variation - could possibly have rank insignia - will also have a stun weapon -->
                
                <!-- 30% chance of female peds -->
                <Ped chance="25" outfit="lspd_cop.f_base" inventory="patrol">mp_f_freemode_01</Ped> <!-- Specifically the "base" variation, with no rank insignia -->
                <Ped chance="5" outfit="lspd_cop" inventory="patrol_stun">mp_f_freemode_01</Ped> <!-- Any variation - could possibly have rank insignia - will also have a stun weapon -->
            </Peds>
            <NumPeds min="2" max="2" />
            <Flags>
                <Flag>RespondsAsTransport</Flag> <!-- Makes the unit eligible to be called for prisoner transport.  Only use this if there will be free seats for prisoners. -->
                <Flag>RespondsAsBackup</Flag>    <!-- Makes the unit eligible to be called as either Code 2, Code 3 or Pursuit backup. -->
                <Flag>SpawnsAmbiently</Flag>     <!-- Makes the unit eligible to spawn ambiently - e.g. on patrol in the area or outside of police stations -->
            </Flags>
        </Loadout>
    </Agency>
</Agencies>

 

TK

Link to comment
Share on other sites

Revert any changes you have made to the agency.xml

You can't just say to the game 'I rename this location to that so it should work now'

Keep the location names and agency names. I'm afraid you can only let them patrol in Los Santos for them to be in Rockford Hills.

However, you can install a script to change that.

 

 

🛑 Prefer support on Discord? Join Charlie686's server to receive live quick support! 🛑

🛑 https://discord.gg/gyw5rDHCfr🛑

 

 

 

Link to comment
Share on other sites

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

Reply to this thread only to offer help or assistance to ThomasEdgewood.
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...