[FREE] [ESX] Police Armory Script for ESX (v1.10.7)

[ESX] [FiveM] [Custom] Police Armory Script for ESX (v1.10.7)

:oncoming_police_car: Overview:
Elevate your law enforcement experience with our advanced Police Armory Script, designed specifically for ESX version 1.10.7. This script integrates seamlessly with ox_target, ox_lib, and ox_inventory, providing a comprehensive and immersive armory system for police departments.

:wrench: Features:

  • Enhanced Armory Access: Utilize ox_target for intuitive and precise interactions with armory components. Officers can easily access weapons and equipment using advanced targeting mechanics.

  • Robust Inventory Management: Integrated with ox_inventory, the armory system ensures efficient management of police gear. Officers can browse, equip, and manage their inventory with ease.

  • Advanced Lib Functions: Leverage the power of ox_lib to streamline user interfaces and interactions, providing a smooth and polished experience.

  • Customizable Equipment: The armory supports a wide range of customizable weapons and items, allowing departments to tailor their loadouts to specific needs.

  • Secure Access Control: Implement access permissions and roles to ensure that only authorized personnel can access and manage the armory.

  • Intuitive UI: Designed with a user-friendly interface that integrates seamlessly with your existing ESX setup, making it easy for officers to navigate and utilize the armory.

:lock: Security Features:

  • Role-Based Access: Ensure that only specific ranks or roles within the police department have access to certain weapons or equipment.

  • Logging and Tracking:
    Monitor and log all interactions with the armory for security and auditing purposes.

:package: Installation:

  1. Ensure Compatibility:
  • Verify that you are running ESX version 1.10.7 and have ox_target, ox_lib, and ox_inventory installed and configured.
  1. Download and Install:
  • Place the Police Armory Script in your resources folder.
  • Update your server.cfg to include the new script.
  1. Configure:
  • Follow the provided configuration guides to set up your armory locations, permissions, and equipment.
  1. Restart Server:
  • Restart your server to apply changes and ensure the armory is fully operational.
  1. Testing:
  • Test armory access and inventory management functions to ensure everything works as expected.

:globe_with_meridians: Languages:

  • :us: English
  • :netherlands: Dutch
  • :de: German
  • :fr: French

(You can easily add your own language in the config.lua)

:speech_balloon: Feedback & Support:

If you have any questions or feedback, feel free to send me a message on CFX. I’d love to hear your thoughts and suggestions for improving or adjusting the script! :blush:

:mag: Preview:

:credit_card: Tebex
Tebex

:video_camera: Demo Police Armory
Watch video
Watch Coords NPC

:inbox_tray: Version v.05
Download the Police Armory Script here!
Police Armory Script

4 Likes

preview?

1 Like

Hi :slight_smile:

Thanks for your message, let me make a short video about the working of the Police Armory. When i have the video it will be posted in a preview link here.

Greetings,
Bjorn - CustomCodex.

1 Like

Just want to let you know that i have updated my post. You can check the video.

nice work :100:

1 Like

Hi :slight_smile:

Thank, i will bring later today a new update with more functions.

1 Like

The armoury location information in the readme doesn’t seem to match that in the config.lua

From the readme file

```lua
--      Config = {
--          ArmoryLocations = {
--              { x = 440.0, y = -980.0, z = 30.0 },
--              -- Add more locations as needed

From config.lua

– Armory coordinates and NPC
Config.ArmoryCoords = vector3(452.6, -980.0, 30.6) – Example coordinates for the armory
Config.ArmoryNPC = {
model = ‘s_m_y_cop_01’,
coords = vector3(438.69100952148, -983.39495849609, 33.3), – Example coordinates for the NPC
heading = -170.0

Doesn’t seem to match at all. I’d like to add multiple locations. How do I add that to the config.lua?

1 Like

Also:

[ c-resources-core] Could not find dependency codem-billing for resource Police-Armory.
[ citizen-server-impl] Couldn’t start resource Police-Armory.

What is this and where can I obtain it?

Hello

Thanks for letting me know your issue, i will give later today a new version. I am sorry!
i use a paid notification system codem-notification. I will change it to the standard version. Also i will update the config file. :slight_smile:

1 Like

That would be great! Thank you!

1 Like

Hi

I have updated my project! You can check the latest version if you want. :netherlands:

1 Like

[ c-resources-core] Could not find dependency codem-billing for resource Police-Armory.

Same Error. That paid resource is still a requirement it seems.

Hi

Did you download the latest version on my Git? because i remove the codem feature! So you don’t need it anymore and you can start the script. Please provide me screenshot.

Ok, the resource now loaded (on server restart). I changed the vector3 of the armoury and armoury NPC but they aren’t where they should be. Any ideas?

Config.ArmoryCoords = vector3(609.537292, 4.243280, 87.802032)
Config.ArmoryNPC = {
model = ‘s_m_y_cop_01’,
coords = vector3(607.860413, 5.229934, 87.802032),
heading = -252.19804382324

These are coord for Vinewood Station MLO we have.

I also noticed your default location is vector3, but in the readme details to add more locations hey are XYZ coordinates. Which one should be used?

And could you kindly check this code, I think I’ve messed it up somehow and the resource now won’t start.

Config = {

Config.DefaultLocale = ‘en’

      ArmoryLocations = {
          { x = 606.60, y = 5.70, z = 87.80 },
          -- Add more locations as needed
     },
      Permissions = {
          ['police'] = true,
          -- Define other roles and permissions
      },
      Equipment = {
         { name = 'weapon_pistol', label = 'Pistol' },
          { name = 'weapon_shotgun', label = 'Shotgun' },
          -- Add more equipment as needed
     },
  }

Config.ArmoryCoords = vector3(452.6, -980.0, 30.6)
Config.ArmoryNPC = {
model = ‘s_m_y_cop_01’,
coords = vector3vec3(438.69100952148, -983.39495849609, 33.3),
heading = -170.0
}

1 Like

Hi

I just did a check and i see that the NPC is frozen at the same spot lol. I am working to get a fix that you simple can put the coords in the config and that the Amory NPC will spawn at that location.

1 Like

Hello :slight_smile:

Just uploaded a new version on Git you can check out Version V.04 i tested it myself and you can simple set / put the coords in the config file. Please restart your resource using your TXAdmin menu. In-game refresh is not working at my side.

Let me know if it works.

1 Like

Thanks so much! Are the coords in the config vector3 or XYZ?

And how would I add more than one Armoury location in the config?

1 Like

Config.ArmoryNPC = {
model = ‘s_m_y_cop_01’, – Replace with your NPC model vector3
coords = {x = 438.23022460938, y = -986.88635253906, z = 34.297306060791}, – Replace with desired coordinates
heading = 90.0 – Replace with desired heading
}

This is what i have coded.
Enjoy the script.

Appreciate all the work and the support, but it doesn’t work. Tried everything I can think of, and your suggestions.

1 Like