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.

I can't seem to get the hang of customizing agencies.


dpaul

Recommended Posts

Since yesterday, I've been trying to add a new child agency for SAHP.
What I want to do is to add in a car for SAHP and have them spawn under a separate backup option, because I don't want only bikes for them. I already got the pack and meta files under police8, police9, police10
In an attempt to have 2 different backup options, one for only the bike and one for the cars, I tried creating a new child agency which has so far failed, I tried to copy some of the lines in sahp and lspd_swat
Each time I test it out, the "Motor unit" is the only one that shows up. I haven't edited any other XML files as I don't think they are relevant to what I'm trying to do. 
Can anyone help me?

Edited by dpaul

Not much interesting here.

Link to comment
Share on other sites

On 5/1/2019 at 9:53 PM, dpaul said:

Since yesterday, I've been trying to add a new child agency for SAHP.
What I want to do is to add in a car for SAHP and have them spawn under a separate backup option, because I don't want only bikes for them. I already got the pack and meta files under police8, police9, police10
In an attempt to have 2 different backup options, one for only the bike and one for the cars, I tried creating a new child agency which has so far failed, I tried to copy some of the lines in sahp and lspd_swat
Each time I test it out, the "Motor unit" is the only one that shows up. I haven't edited any other XML files as I don't think they are relevant to what I'm trying to do. 
Can anyone help me?

Hi there,

You need to create the new option in the agency.xml file under the parent SAHP agency. I've made an example below which can be placed in the SAHP agency along with the motor unit which is already in the file. The ped tag can be changed to whichever model you are using, e.g if you want the same as the motor unit then copy that ped.

 

Spoiler
Spoiler

<Loadout>
            <Name>SAHP Car</Name>
            <Vehicles>
                <Vehicle>police8</Vehicle>
                <Vehicle>police9</Vehicle>

                 <Vehicle>police10</Vehicle>
            </Vehicles>
            <Peds>
                <Ped>s_m_y_cop_01</Ped>
            </Peds>
            <NumPeds min="1" max="2" />
            <Flags>
                <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>

 

 

 

"And maybe remind the few,

if ill of us they speak,
That we are all that stands,

between the monsters and the weak"

Link to comment
Share on other sites

4 hours ago, Vaultcop said:

Hi there,

You need to create the new option in the agency.xml file under the parent SAHP agency. I've made an example below which can be placed in the SAHP agency along with the motor unit which is already in the file. The ped tag can be changed to whichever model you are using, e.g if you want the same as the motor unit then copy that ped.

 

  Reveal hidden contents
  Reveal hidden contents

<Loadout>
            <Name>SAHP Car</Name>
            <Vehicles>
                <Vehicle>police8</Vehicle>
                <Vehicle>police9</Vehicle>

                 <Vehicle>police10</Vehicle>
            </Vehicles>
            <Peds>
                <Ped>s_m_y_cop_01</Ped>
            </Peds>
            <NumPeds min="1" max="2" />
            <Flags>
                <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>

 

 

 

Thank you so much for your help! I can confirm it works now!
Thank you, once again, I couldn't have done this without help

Not much interesting here.

Link to comment
Share on other sites

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

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