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.

LSPDFR 0.4 Custom Agencies

Featured Replies

Hello

 

I played around with the agency files in the new LSPDFR 0.4 for a couple of hours but couldn't figure out how to properly add agencies ( or replace ). I tried changing the NYSP agency to PBPD ( paleto bay pd) but i couldn't get it to work. I want to add PBPD as am agency with its own patrol area, backup etc. If someone has figured it out, please make a tutorial or something. PBPD is just an example, most default agencies in lspdfr 0.4 don't make sense, so i want to either replace them or overwrite them with new ones. Grapeseed PD, Paleto Bay PD, Zancudo Police, Chilliad Rangers, Port authority are some examples. Also i can't seem to find where agencies have their designated patrol areas mentioned. There is just one file with all of the zones and that's it. 

 

Anyway, any help regarding this will be greatly appreciated. One of the many reasons i was excited about 0.4 was the fact that you could add extra agencies with their own areas. Until i get to know how to actually add them, I won't be expreciencing that part of the update.

Three main steps.

New agency.xml entry:

<Agency>
	<Name>Paleto Bay Police Dept.</Name>
	<ShortName>PBPD</ShortName>
	<ScriptName>pbpd</ScriptName>
	<Inventory>patrol</Inventory>
	<TextureDictionary>dia_police</TextureDictionary>
	<TextureName>dia_police</TextureName>
	<Loadout>
		<Name>Patrol Car</Name>
		<Vehicles>
			<Vehicle>modelname</Vehicle>
		</Vehicles>
		<Peds>
			<Ped>modelname</Ped>
		</Peds>
		<NumPeds min="2" max="2" />
		<Flags>
			<Flag>RespondsAsTransport</Flag>
			<Flag>RespondsAsBackup</Flag>
			<Flag>SpawnsAmbiently</Flag>
		</Flags>
	</Loadout>
</Agency>

New regions.xml entry:

<Region>
    <Name>Paleto</Name>
    <Zones>
        <Zone>PALFOR</Zone>
        <Zone>PALETO</Zone>
    </Zones>
</Region>

New backup.xml entry:

<Paleto>
	<Agency>pbpd</Agency>
</Paleto>

 

I did a copy and paste of the text given and ended up with this:

 

Agency: Del Perro Police Department.

Spoiler

<Agency>
    <Name>Del Perro Police Department</Name>
    <ShortName>DPPD</ShortName>
    <ScriptName>dppd</ScriptName>
    <Inventory>patrol</Inventory>
    <TextureDictionary>dia_police</TextureDictionary>
    <TextureName>dia_police</TextureName>
    <Loadout>
        <Name>Patrol Car</Name>
        <Vehicles>
            <Vehicle>dppolice</Vehicle>
            <Vehicle>dppolice2</Vehicle>
            <Vehicle>dppolice4</Vehicle
        </Vehicles>
        <Peds>
            <Ped><Ped chance="100" outfit="lspd_cop">mp_m_freemode_01</Ped></Ped>
        </Peds>
        <NumPeds min="2" max="2" />
        <Flags>
            <Flag>RespondsAsTransport</Flag>
            <Flag>RespondsAsBackup</Flag>
            <Flag>SpawnsAmbiently</Flag>
        </Flags>
    </Loadout>
</Agency>
    <Agency>
    <Name>Del Perro Community Resources</Name>
    <ShortName>DPCR</ShortName>
    <ScriptName>dpcr</ScriptName>
    <Inventory>patrol</Inventory>
    <TextureDictionary>dia_police</TextureDictionary>
    <TextureName>dia_police</TextureName>
    <Loadout>
        <Name>Patrol Car</Name>
        <Vehicles>
            <Vehicle>dppolice3</Vehicle>
            <Vehicle>dppolice5</Vehicle>
        </Vehicles>
        <Peds>
            <Ped><Ped chance="100" outfit="lspd_cop">mp_m_freemode_01</Ped></Ped>
        </Peds>
        <NumPeds min="2" max="2" />
        <Flags>
            <Flag>RespondsAsTransport</Flag>
            <Flag>RespondsAsBackup</Flag>
            <Flag>SpawnsAmbiently</Flag>
        </Flags>
    </Loadout>
</Agency>

 

Region (Del Perro)

 

 <Region>
    <Name>DelPerroPoliceDepartment</Name>
    <Zones>
        <Zone>DELBE</Zone>
        <Zone>DELPE</Zone>
    </Zones>
    </Region>

 

Backup XML listing.

 

<DelPerro>
            <Agency>dppd</Agency>
            <Agency>dpcr</Agency>
        </DelPerro>   

 

I don't know what I've done wrong, but for some reason the custom department isn't showing up correctly in the (backup menu), and vehicles aren't spawning. Any assistance would be greatly appreciated. ^-^

 

Edited by sorashinigami

Sora

Well, you've named the regions differently in each file, for one

 

Also, the dppolice4 vehicle entry has a broken closing tag, and your ped entries have duplicate tags.

Edited by The Loot

I attempted this too cause I have Oregon state police trooper EUP uniforms and an addon car the charger I called OSPch and tried this to add it so it would be its own agency and it crashed so I deleted the custom .xmls I don't know enough about this yet haha maybe the guy who created the uniforms will figure out this and release the .xmls or someone else who lives in Oregon haha but I am just so glad I can play 0.4 waited a week to throw it in and it works like a charm so far.. aside from my lack of knowledge regarding scripting lol

16 hours ago, sorashinigami said:

How are the regions named differently?

 

And how is it duplicate? I thought that was a generic tag for the peds.

Your region is named "DelPerroPoliceDepartment", but backup references "DelPerro".

 

A ped entry only has one opening and closing "Ped" tag, that one has two of each.

  • Author

Thank you very much for the help, guys! Happy modding

On 3/3/2019 at 2:29 AM, The Loot said:

Three main steps.

New agency.xml entry:


<Agency>
	<Name>Paleto Bay Police Dept.</Name>
	<ShortName>PBPD</ShortName>
	<ScriptName>pbpd</ScriptName>
	<Inventory>patrol</Inventory>
	<TextureDictionary>dia_police</TextureDictionary>
	<TextureName>dia_police</TextureName>
	<Loadout>
		<Name>Patrol Car</Name>
		<Vehicles>
			<Vehicle>modelname</Vehicle>
		</Vehicles>
		<Peds>
			<Ped>modelname</Ped>
		</Peds>
		<NumPeds min="2" max="2" />
		<Flags>
			<Flag>RespondsAsTransport</Flag>
			<Flag>RespondsAsBackup</Flag>
			<Flag>SpawnsAmbiently</Flag>
		</Flags>
	</Loadout>
</Agency>

New regions.xml entry:


<Region>
    <Name>Paleto</Name>
    <Zones>
        <Zone>PALFOR</Zone>
        <Zone>PALETO</Zone>
    </Zones>
</Region>

New backup.xml entry:


<Paleto>
	<Agency>pbpd</Agency>
</Paleto>

 

Nicely explained! Thanks for the template

  • 4 weeks later...

Tried this last night.  Wanted to divide Blaine county up into smaller sectors so I could have different vehicles for each sector. Followed that template and I got an endless black screen with the spinning wheel in the lower right hand corner. 

  • 4 months later...

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

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.