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.
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.

Change agencies name and assigned cars

Featured Replies

Hello,

Is it possible to add police vehicles to a certain agencie ?  And to change the ingame name of the agencies ? Because I'm creating an Hawaii LSPDFR Pack and I would like to change the name of the agencies. 

 

Like that

 

Spoiler

<Agency>
        <Name>Public Safety Department of Hawaii</Name>
        <ShortName>PSD</ShortName>
        <ScriptName>psd</ScriptName>
        <Inventory>default</Inventory>
        <TextureDictionary>dia_police</TextureDictionary>
        <TextureName>dia_police</TextureName>
        <Loadout>
            <Name>Patrol Unit</Name>
            <Vehicles>
                <Vehicle>sheriff</Vehicle>
                <Vehicle>wranglerPSD</Vehicle>
            </Vehicles>
            <Peds>
                <!-- 75% chance of male peds -->
                <Ped chance="60" inventory="patrol">s_m_y_sheriff_01</Ped> <!-- 60% chance of male sheriff ped with basic patrol inventory -->
                <Ped chance="15" inventory="patrol_stun">s_m_y_sheriff_01</Ped> <!-- 15% chance of male sheriff ped with stun gun -->
                
                <!-- 25% chance of female peds -->
                <Ped chance="20" inventory="patrol">s_f_y_sheriff_01</Ped> <!-- 20% chance of female sheriff ped with basic patrol inventory -->
                <Ped chance="5" inventory="patrol_stun">s_f_y_sheriff_01</Ped> <!-- 5% chance of female sheriff ped with stun gun -->
            </Peds>
            <NumPeds min="1" 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>

Cause it's not working 😕 I don't see the new vehicles in the garage menu and the name doesn't change.

 

Any idea ? 

 

Edited by DarrOw FR

As @The Loot said, you have to edit the duty_selection.xml as well

 

For example, it has to look like that then:

Spoiler

<Duty>
    <Peds>
        <Agency>psd</Agency>
    </Peds>
    <Vehicles>
        <Agency>psd</Agency>
    </Vehicles>
    <VehicleDescriptions>
        <Description name="Whatever you want" fullName="Whatever you want" agencyRef="psd">sheriff</Description>
        <Description name="Whatever you want" fullName="Whatever you want" agencyRef="psd">wranglerPSD</Description>
    </VehicleDescriptions>
</Duty>

 

 

Edited by ScratchnTavi
I bucked up xD

http://i.imgur.com/I0B5P1Y.png

This topic has been moved to the appropriate forum. Please post in the correct location in the future.

Sticks and stones may break bones, but 5.56 fragments on impact.

5 hours ago, DarrOw FR said:

Thanks you both @The Loot @ScratchnTavi ! 

And for add vehicles to agencies you have an idea ? 

 

What do you mean?

How to add the vehicles to the Agency?

You have to edit the Agency.xml or add a new one to the Customs folder.

Here a small example from me:

 

Spoiler

<Agencies>
        <Agency>
        <Name>San Andreas Security Department</Name>
        <ShortName>SASCD</ShortName>
        <ScriptName>sascd</ScriptName>
        <Inventory>default</Inventory>
        <Loadout>
            <Name>Bobcat Security</Name>
            <Vehicles>
                <Vehicle>bsgranger</Vehicle>
                <Vehicle>bsfugitive</Vehicle>
                <Vehicle>emsvan</Vehicle>
            </Vehicles>
            <Peds>
                <Ped inventory="patrol_stun">csb_prolsec</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>
                <Loadout>
            <Name>Gruppe 6 Sicherheit</Name>
            <Vehicles>
                <Vehicle>g6buffalo</Vehicle>
                <Vehicle>g6alamo</Vehicle>
                <Vehicle>g6mesa</Vehicle>
                <Vehicle>dilettante3</Vehicle>
            </Vehicles>
            <Peds>
                <Ped inventory="patrol_stun">s_m_m_armoured_02</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>
        <Loadout>
            <Name>State Security</Name>
            <Vehicles>
                <Vehicle>lealamo</Vehicle>
                <Vehicle>lebuffs</Vehicle>
                <Vehicle>rpdcar2</Vehicle>
                <Vehicle>rpdcar4</Vehicle>
            </Vehicles>
            <Peds>
                <Ped chance="70" inventory="patrol_stun">s_m_m_highsec_02</Ped>
                <Ped chance="30" inventory="patrol">ig_fbisuit_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>
    </Agency>
</Agencies>

 

I hope that was the right thing you wanted to know^^

  • Author
2 hours ago, ScratchnTavi said:

 

What do you mean?

How to add the vehicles to the Agency?

You have to edit the Agency.xml or add a new one to the Customs folder.

Here a small example from me:

 

  Hide contents

<Agencies>
        <Agency>
        <Name>San Andreas Security Department</Name>
        <ShortName>SASCD</ShortName>
        <ScriptName>sascd</ScriptName>
        <Inventory>default</Inventory>
        <Loadout>
            <Name>Bobcat Security</Name>
            <Vehicles>
                <Vehicle>bsgranger</Vehicle>
                <Vehicle>bsfugitive</Vehicle>
                <Vehicle>emsvan</Vehicle>
            </Vehicles>
            <Peds>
                <Ped inventory="patrol_stun">csb_prolsec</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>
                <Loadout>
            <Name>Gruppe 6 Sicherheit</Name>
            <Vehicles>
                <Vehicle>g6buffalo</Vehicle>
                <Vehicle>g6alamo</Vehicle>
                <Vehicle>g6mesa</Vehicle>
                <Vehicle>dilettante3</Vehicle>
            </Vehicles>
            <Peds>
                <Ped inventory="patrol_stun">s_m_m_armoured_02</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>
        <Loadout>
            <Name>State Security</Name>
            <Vehicles>
                <Vehicle>lealamo</Vehicle>
                <Vehicle>lebuffs</Vehicle>
                <Vehicle>rpdcar2</Vehicle>
                <Vehicle>rpdcar4</Vehicle>
            </Vehicles>
            <Peds>
                <Ped chance="70" inventory="patrol_stun">s_m_m_highsec_02</Ped>
                <Ped chance="30" inventory="patrol">ig_fbisuit_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>
    </Agency>
</Agencies>

 

I hope that was the right thing you wanted to know^^

I did that

Spoiler

<Agency>
        <Name>Los Santos County Sheriff</Name>
        <ShortName>LSSD</ShortName>
        <ScriptName>lssd</ScriptName>
        <Inventory>default</Inventory>
        <TextureDictionary>dia_police</TextureDictionary>
        <TextureName>dia_police</TextureName>
        <Loadout>
            <Name>Patrol Unit</Name>
            <Vehicles>
                <Vehicle>sheriff</Vehicle>
            </Vehicles>
            <Peds>
                <!-- 75% chance of male peds -->
                <Ped chance="60" inventory="patrol">s_m_y_sheriff_01</Ped> <!-- 60% chance of male sheriff ped with basic patrol inventory -->
                <Ped chance="15" inventory="patrol_stun">s_m_y_sheriff_01</Ped> <!-- 15% chance of male sheriff ped with stun gun -->
                
                <!-- 25% chance of female peds -->
                <Ped chance="20" inventory="patrol">s_f_y_sheriff_01</Ped> <!-- 20% chance of female sheriff ped with basic patrol inventory -->
                <Ped chance="5" inventory="patrol_stun">s_f_y_sheriff_01</Ped> <!-- 5% chance of female sheriff ped with stun gun -->
            </Peds>
            <NumPeds min="1" 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>
        <Loadout>
            <Name>PSD Patrol</Name>
            <Vehicles>
                <Vehicle>wranglerPSD</Vehicle>
            </Vehicles>
            <Peds>
                <!-- 75% chance of male peds -->
                <Ped chance="60" inventory="patrol">s_m_y_sheriff_01</Ped> <!-- 60% chance of male sheriff ped with basic patrol inventory -->
                <Ped chance="15" inventory="patrol_stun">s_m_y_sheriff_01</Ped> <!-- 15% chance of male sheriff ped with stun gun -->
                
                <!-- 25% chance of female peds -->
                <Ped chance="20" inventory="patrol">s_f_y_sheriff_01</Ped> <!-- 20% chance of female sheriff ped with basic patrol inventory -->
                <Ped chance="5" inventory="patrol_stun">s_f_y_sheriff_01</Ped> <!-- 5% chance of female sheriff ped with stun gun -->
            </Peds>
            <NumPeds min="1" 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>
    <Agency>
        <Name>San Andreas Highway Patrol</Name>
        <ShortName>SAHP</ShortName>
        <ScriptName>sahp</ScriptName>
        <Inventory>default</Inventory>
        <TextureDictionary>s_m_y_hwaycop_01</TextureDictionary>
        <TextureName>decl_diff_001_a_uni</TextureName>
        <Loadout>
            <Name>Motor Unit</Name>
            <Vehicles>
                <Vehicle>policeb</Vehicle>
            </Vehicles>
            <Peds>
                <Ped comp_uppr="1" comp_decl="1" comp_lowr="0" prop_head="0" helmet="true" inventory="biker">s_m_y_hwaycop_01</Ped>
            </Peds>
            <NumPeds min="1" max="1" />
            <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>
    </Agency>


But it's not working 😕 I can't take it in the garage

3 minutes ago, DarrOw FR said:

I did that

  Reveal hidden contents

<Agency>
        <Name>Los Santos County Sheriff</Name>
        <ShortName>LSSD</ShortName>
        <ScriptName>lssd</ScriptName>
        <Inventory>default</Inventory>
        <TextureDictionary>dia_police</TextureDictionary>
        <TextureName>dia_police</TextureName>
        <Loadout>
            <Name>Patrol Unit</Name>
            <Vehicles>
                <Vehicle>sheriff</Vehicle>
            </Vehicles>
            <Peds>
                <!-- 75% chance of male peds -->
                <Ped chance="60" inventory="patrol">s_m_y_sheriff_01</Ped> <!-- 60% chance of male sheriff ped with basic patrol inventory -->
                <Ped chance="15" inventory="patrol_stun">s_m_y_sheriff_01</Ped> <!-- 15% chance of male sheriff ped with stun gun -->
                
                <!-- 25% chance of female peds -->
                <Ped chance="20" inventory="patrol">s_f_y_sheriff_01</Ped> <!-- 20% chance of female sheriff ped with basic patrol inventory -->
                <Ped chance="5" inventory="patrol_stun">s_f_y_sheriff_01</Ped> <!-- 5% chance of female sheriff ped with stun gun -->
            </Peds>
            <NumPeds min="1" 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>
        <Loadout>
            <Name>PSD Patrol</Name>
            <Vehicles>
                <Vehicle>wranglerPSD</Vehicle>
            </Vehicles>
            <Peds>
                <!-- 75% chance of male peds -->
                <Ped chance="60" inventory="patrol">s_m_y_sheriff_01</Ped> <!-- 60% chance of male sheriff ped with basic patrol inventory -->
                <Ped chance="15" inventory="patrol_stun">s_m_y_sheriff_01</Ped> <!-- 15% chance of male sheriff ped with stun gun -->
                
                <!-- 25% chance of female peds -->
                <Ped chance="20" inventory="patrol">s_f_y_sheriff_01</Ped> <!-- 20% chance of female sheriff ped with basic patrol inventory -->
                <Ped chance="5" inventory="patrol_stun">s_f_y_sheriff_01</Ped> <!-- 5% chance of female sheriff ped with stun gun -->
            </Peds>
            <NumPeds min="1" 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>
    <Agency>
        <Name>San Andreas Highway Patrol</Name>
        <ShortName>SAHP</ShortName>
        <ScriptName>sahp</ScriptName>
        <Inventory>default</Inventory>
        <TextureDictionary>s_m_y_hwaycop_01</TextureDictionary>
        <TextureName>decl_diff_001_a_uni</TextureName>
        <Loadout>
            <Name>Motor Unit</Name>
            <Vehicles>
                <Vehicle>policeb</Vehicle>
            </Vehicles>
            <Peds>
                <Ped comp_uppr="1" comp_decl="1" comp_lowr="0" prop_head="0" helmet="true" inventory="biker">s_m_y_hwaycop_01</Ped>
            </Peds>
            <NumPeds min="1" max="1" />
            <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>
    </Agency>


But it's not working 😕 I can't take it in the garage

 

Did you add the entries in the duty_selection too?

Please attach your Agency.xml and your duty_selection.xml please, maybe it shows us where the problem is.

  • Author
9 minutes ago, ScratchnTavi said:

 

Hm that's interesting. Your files are correct so it should be available.

Did you add the model correctly? Can you spawn it via trainer?

Yeah I can spawn it 😕 I don't understand... Is the custom folder working ?

1 minute ago, DarrOw FR said:

Yeah I can spawn it 😕 I don't understand... Is the custom folder working ?

 

It should!

Try to rename the Files in the custom folder.

Like "Agency_addon.xml" and "duty_selection_addon.xml"

 

I had them differently named from the beginning so I don't know if that might be the error.

  • Author
14 minutes ago, ScratchnTavi said:

 

It should!

Try to rename the Files in the custom folder.

Like "Agency_addon.xml" and "duty_selection_addon.xml"

 

I had them differently named from the beginning so I don't know if that might be the error.

Working !! Thanks you so much !

 

If you have time, I have another problem lol... My police lightbars are... strange x) They don't work but when I'm on pause menu, I can see the glow... And it do the same with every modded vehicles.  

 

20190302005530_2.thumb.jpg.0d3794647d17dc25c9a7069e4c5f880f.jpg

20190302005622_1.thumb.jpg.a2b717ad68c52bb748ef9f2a4031e015.jpg

 

6 minutes ago, DarrOw FR said:

Working !! Thanks you so much !

 

If you have time, I have another problem lol... My police lightbars are... strange x) They don't work but when I'm on pause menu, I can see the glow... And it do the same with every modded vehicles.  

 

20190302005530_2.thumb.jpg.0d3794647d17dc25c9a7069e4c5f880f.jpg

20190302005622_1.thumb.jpg.a2b717ad68c52bb748ef9f2a4031e015.jpg

 

 

Heh, no problem^^

Are those Addon or replace vehicles?

ELS or non-ELS?

Did you alter the carvariations.meta and vehicles.meta correctly?

Edited by ScratchnTavi
Typos... Typos... Banana!

  • Author
2 minutes ago, ScratchnTavi said:

 

Heh, no problem^^

Are those Addon or replace vehicles?

ELS or non-ELS?

Did you alter the carvariations.meta and vehicles.meta correctly?

Thanks ! 

They are all ELS.

They are replace vehicles but I don't think it change something cause my Jeep Wrangler is an Add-on and it doesn't work too.

And I take the vehicles.meta from the pack I downloaded and just replace the correct lines

And one month ago it was working and I reinstalled my LSPDFR for the update and it doesn't work anymore

 

PS : I'm sorry if my english is bad 😄 

29 minutes ago, DarrOw FR said:

Thanks ! 

They are all ELS.

They are replace vehicles but I don't think it change something cause my Jeep Wrangler is an Add-on and it doesn't work too.

And I take the vehicles.meta from the pack I downloaded and just replace the correct lines

And one month ago it was working and I reinstalled my LSPDFR for the update and it doesn't work anymore

 

PS : I'm sorry if my english is bad 😄 

 

If it's ELS, there needs to be a txd file with the same name like the model, you have to put it into the default pack of ELS

  • Author
2 minutes ago, ScratchnTavi said:

 

If it's ELS, there needs to be a txd file with the same name like the model, you have to put it into the default pack of ELS

Yes I know xD I put it 

 

  • Author
Just now, ScratchnTavi said:

 

Hmmm weird, then I sadly don't know xD

Never had problems with my vehicles so far and I got a few dozen of them^^

Ok, thanks for your help 🙂 I'll try to fix this

This is a support topic.
Only reply here to offer help or assistance to DarrOw FR. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

Join the conversation

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

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

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.