[ESX] [FiveM] [Custom] Police Armory Script for ESX (v1.10.7)
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.
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.
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.
Installation:
Ensure Compatibility:
Verify that you are running ESX version 1.10.7 and have ox_target, ox_lib, and ox_inventory installed and configured.
Download and Install:
Place the Police Armory Script in your resources folder.
Update your server.cfg to include the new script.
Configure:
Follow the provided configuration guides to set up your armory locations, permissions, and equipment.
Restart Server:
Restart your server to apply changes and ensure the armory is fully operational.
Testing:
Test armory access and inventory management functions to ensure everything works as expected.
Languages:
English
Dutch
German
French
(You can easily add your own language in the config.lua)
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!
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.
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?
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.
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.
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.
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.
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
}