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.

Adjusting inventory.xml for startup Weapons

Featured Replies

I'm changing the starting inventory for LSPDFR and can't figure out if what I want to do is possible. This first inventory.xml setting works fine:

 

Spoiler

<Inventory>
        <!-- Simple patrol config with two pistol variants and small chance of a shotgun -->
        <Name>Patrol</Name>
        <ScriptName>patrol</ScriptName>
        <Weapon>
            <Model>WEAPON_CARBINERIFLE_MK2</Model>
            <Component>CARBINERIFLE_MK2_CLIP_ARMORPIERCING</Component>
            <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight -->
            <Component>COMPONENT_AT_AR_AFGRIP_02</Component> <!-- Grip -->
            <Component>COMPONENT_AT_SCOPE_MEDIUM_MK2</Component> <!-- Scope -->
        </Weapon>
        <Weapon>
            <Model>WEAPON_ASSAULTSHOTGUN</Model>
            <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight -->
        </Weapon>
        <Weapon>
            <Model>WEAPON_REVOLVER_MK2</Model>
            <Component>REVOLVER_MK2_CLIP_HOLLOWPOINT</Component>
            <Component>COMPONENT_AT_PI_FLSH</Component> <!-- Flashlight -->
        </Weapon>
        <StunWeapon>WEAPON_STUNGUN</StunWeapon>
        <Armor>100</Armor>
    </Inventory>
    <Inventory>
        <!-- Same as above but with a stungun -->
        <Name>Patrol (Stun)</Name>
        <ScriptName>patrol_stun</ScriptName>
        <Weapon>
            <Model>WEAPON_CARBINERIFLE_MK2</Model>
            <Component>CARBINERIFLE_MK2_CLIP_ARMORPIERCING</Component>
            <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight -->
            <Component>COMPONENT_AT_AR_AFGRIP_02</Component> <!-- Grip -->
            <Component>COMPONENT_AT_SCOPE_MEDIUM_MK2</Component> <!-- Scope -->
        </Weapon>
        <Weapon>
            <Model>WEAPON_ASSAULTSHOTGUN</Model>
            <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight -->
        </Weapon>
        <Weapon>
            <Model>WEAPON_REVOLVER_MK2</Model>
            <Component>REVOLVER_MK2_CLIP_HOLLOWPOINT</Component>
            <Component>COMPONENT_AT_PI_FLSH</Component> <!-- Flashlight -->
        </Weapon>
        <StunWeapon>WEAPON_STUNGUN</StunWeapon>
        <Armor>100</Armor>
    </Inventory>

 

 

But when I tried to change/add these more weapons it fails to load: (what am I doing wrong?)

Spoiler

<Inventory>
        <!-- Simple patrol config with two pistol variants and small chance of a shotgun -->
        <Name>Patrol</Name>
        <ScriptName>patrol</ScriptName>
        <Weapon>
                <Model>WEAPON_CARBINERIFLE_MK2</Model>
            <Component>CARBINERIFLE_MK2_CLIP_ARMORPIERCING</Component>
                    <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight -->
            <Component>COMPONENT_AT_AR_AFGRIP_02</Component> <!-- Grip -->
            <Component>COMPONENT_AT_SCOPE_MEDIUM_MK2</Component> <!-- Scope -->
        </Weapon>
        <Weapon>
                <Model>WEAPON_ASSAULTSHOTGUN</Model>
                    <Component>COMPONENT_AT_AR_FLSH</Component> <!-- Flashlight -->
        </Weapon>
        <Weapon>
                <Model>WEAPON_APPISTOL</Model>
            <Component>COMPONENT_APPISTOL_CLIP_02</Component>
                    <Component>COMPONENT_AT_PI_FLSH</Component> <!-- Flashlight -->
        </Weapon>
    <Weapon>
        <Model>WEAPON_COMBATMG_MK2</MODEL>
            <Component><COMPONENT_COMBATMG_MK2_CLIP_ARMORPIERCING></Component>
            <Component><COMPONENT_AT_SIGHTS></Component>
            <Component><COMPONENT_AT_MUZZLE_05></Component>

    </Weapon>
        <StunWeapon>WEAPON_STUNGUN</StunWeapon>
    <Weapon>
        <Model>WEAPON_SNIPERRIFLE</Model>
            <Component><COMPONENT_AT_SCOPE_MAX></Component>
    </Weapon>
    <Weapon>
        <Model>WEAPON_GRENADELAUNCHER</Model>
            <Component><COMPONENT_GRENADELAUNCHER_CLIP_01></Component>
    </Weapon>
    <Weapon>
        <Model>WEAPON_NIGHTSTICK</Model>
    </Weapon>
    <Weapon>
        <Model>WEAPON_STICKYBOMB</Model>
    </Weapon>

        <Armor>100</Armor>
    </Inventory>

 

Edited by omhdan7
corrected highlight

  • 2 months later...

I have a similar issue, it seems like some weapons cant be used by the NPCs. Or does LSPDFR not start at all with the changed  inventory?

 

Mit freundlichen Grüßen / sincerely 

Phil

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.