Spectro VIP Weapons
Last updated
Last updated
Advanced VIP weapon management system for FiveM with administration panel, custom loadouts and flexible permissions
Menu Access
Modern interface to manage VIP weapons
/weapons
or F4
Loadout System
Save up to 10 weapon configurations
From menu
Weapon Customization
Add attachments to any allowed weapon
In weapon menu
Quick Disarm
Unequip current VIP weapon
X
Personal Settings
Configure position, notifications, etc.
In menu
Admin Panel
Complete permission management
/weaponadmin
or F9
Player Management
Control permissions online/offline
Admin panel
Logging System
Records in console/file/Discord
Automatic
Console Commands
Manage from server console
addweaponadmin
etc.
Cacheable Weapons
Advanced requirement system
Admin panel
Multi-Framework: ESX, QBCore, vRP and Standalone
Database: MySQL with 5 main tables
Optimization: Low resource consumption
Flexible Configuration: Over 50 configurable options
Restricted Zones: Disable weapons in specific areas
mysql-async/oxmysql
Database system
â Compatible with all
MenuV
Menu system
â Required
MySQL/MariaDB
Database
â Required
â ī¸ IMPORTANT: MenuV is a critical dependency. Without it, the script won't work. Included in purchase link and detailed in description: https://spectro.tebex.io/
â Database: The script is compatible with all FiveM database systems (mysql-async, oxmysql, ghmattimysql, etc.). No compatibility issues.
FiveM Server
Latest version available
Lua
5.4 enabled
Free Space
Minimum 50MB
RAM
Minimum 100MB available
ESX Legacy
1.8+
â Fully compatible
â All inventories
QBCore
Latest
â Fully compatible
â All inventories
vRP
1.0+
â Fully compatible
â All inventories
Standalone
-
â No framework required
â No issues
â Compatibility Guarantee: This script is 100% compatible with ALL existing inventories:
Common inventories (ox_inventory, lj-inventory, qb-inventory, etc.)
Custom and modified inventories
Self-developed inventories
No matter the system, it will work perfectly without problems or conflicts.
đ Includes sample weapons: The script comes pre-configured with 2 default GTA weapons that you can modify as you wish (ready to use).
Download script files
Extract contents to a temporary directory
IMPORTANT: Rename main folder to Spectro_weaponvip
Note: The script is compatible with all common FiveM database systems.
Tables created:
spectro_weapon_permissions
spectro_loadouts
spectro_cacheable_weapons
spectro_preferences
spectro_user_settings
Open config.lua
Modify admin line:
Adjust other values as needed
Go to the ox_inventory folder
Go to the modules folder which is inside the ox_inventory folder
Inside the modules folder, go to the folder called weapon
Inside the weapon folder open the client.lua
Inside the file, look for the following line and delete it (It is usually around line 134):
â Full Compatibility: No matter what framework or inventory you use, this script will work perfectly without additional modifications.
Top Left
topleft
Upper left corner
Top Center
topcenter
Top center
Top Right
topright
Upper right corner
Center Left
centerleft
Center left
Center
center
Screen center
Center Right
centerright
Center right
Bottom Left
bottomleft
Lower left corner
Bottom Center
bottomcenter
Bottom center
Bottom Right
bottomright
Lower right corner
â Includes sample weapons: The script already comes with 2 default GTA weapons ready to use in
defaultlist.json
. You can:
Use them as they are
Modify them according to your needs
Add more GTA V weapons or mods
đ Add any weapon: In addition to included ones, you can add any GTA V weapon or custom weapon mods.
Step 1: Basic Structure
To add a new weapon, open addonlist.json
file and add a new entry with this structure:
Step 2: Complete Example - Adding AK-47
Step 3: How to Find Weapon HASH
Pistol
WEAPON_PISTOL
Combat Pistol
WEAPON_COMBATPISTOL
Micro SMG
WEAPON_MICROSMG
SMG
WEAPON_SMG
Assault Rifle (AK-47)
WEAPON_ASSAULTRIFLE
Carbine (M4A1)
WEAPON_CARBINERIFLE
Advanced Rifle
WEAPON_ADVANCEDRIFLE
Shotgun
WEAPON_PUMPSHOTGUN
Combat Shotgun
WEAPON_ASSAULTSHOTGUN
Sniper Rifle
WEAPON_SNIPERRIFLE
Heavy Sniper
WEAPON_HEAVYSNIPER
Step 4: How to Find Components/Attachments
1. For Base GTA V Weapons:
2. For Modded Weapons:
If using modded weapons (like WeaponPack, etc.), you need:
Open the mod's weapons.meta
file
Search for attachBone
or components
Copy exact component names
Step 5: Category Structure
You can organize attachments as you wish:
Step 6: Example with Modded Weapon
Step 7: Grant Permissions
Once weapon is added, remember to:
Restart script or server
Open admin panel (/weaponadmin
)
Select player
Add the new weapon
Ready to use!
Step 8: Verify Hash
If unsure about weapon hash, you can:
Test weapon in-game
Open console (F8
)
Type GetCurrentPedWeapon()
while having weapon equipped
Number shown is the hash (convert to name using online tools)
Useful Tips:
Unique names: Each weapon must have unique hash
Clear names: Use descriptive labels for attachments
Categorization: Group similar attachments in same category
Testing: Test each weapon after adding
Backup: Always backup file before modifying
Complete addonlist.json Example:
Pistols
WEAPON_PISTOL, WEAPON_PISTOL50, WEAPON_COMBATPISTOL, WEAPON_APPISTOL, WEAPON_HEAVYPISTOL, WEAPON_REVOLVER, WEAPON_MARKSMANPISTOL
SMGs
WEAPON_MICROSMG, WEAPON_SMG, WEAPON_ASSAULTSMG, WEAPON_COMBATPDW, WEAPON_MACHINEPISTOL, WEAPON_MINISMG
Assault Rifles
WEAPON_ASSAULTRIFLE, WEAPON_CARBINERIFLE, WEAPON_ADVANCEDRIFLE, WEAPON_SPECIALCARBINE, WEAPON_BULLPUPRIFLE, WEAPON_COMPACTRIFLE
Shotguns
WEAPON_PUMPSHOTGUN, WEAPON_SAWNOFFSHOTGUN, WEAPON_ASSAULTSHOTGUN, WEAPON_BULLPUPSHOTGUN, WEAPON_HEAVYSHOTGUN, WEAPON_DBSHOTGUN
Snipers
WEAPON_SNIPERRIFLE, WEAPON_HEAVYSNIPER, WEAPON_MARKSMANRIFLE
Machine Guns
WEAPON_MG, WEAPON_COMBATMG, WEAPON_GUSENBERG
Command
/weaponadmin
Be administrator
Hotkey
F9
Be administrator
1. Player Management
Online Players
List of connected players
View permissions, Add/Remove weapons
Offline Players
Players with saved permissions
View permissions, Add/Remove weapons
2. Weapon Management
Add Weapon
Grant permission for new weapon
Requires confirmation
Remove Weapon
Revoke existing permission
Requires confirmation
View Permissions
List all player weapons
-
3. Reporting System
4. Cacheable Weapons
Status
Enable/Disable caching
true/false
Base Weapon
Required weapon for VIP use
Weapon list
Save Config
Database persistence
Automatic
License
license:
license:abc123...
Steam
steam:
steam:11000001234567890
Discord
discord:
discord:123456789012345678
IP
ip:
ip:192.168.1.1
Equip weapons you want to save
Add attachments to each weapon
Open menu (/weapons
or F4
)
Select "Manage Loadouts"
Choose "Create new loadout"
Enter custom name
Confirm to save
license
VARCHAR(255)
Player license
name
VARCHAR(255)
Loadout name
weapons
TEXT
Weapons JSON
components
LONGTEXT
Attachments JSON
Save cooldown: Prevents spam
Maximum limit: Storage control
Attachment saving: Complete configuration
Quick loading: Immediate application
Cacheable weapons require players to own a "base weapon" to use the VIP weapon.
Example: To use WEAPON_SCAR17FM, player must have WEAPON_PISTOL.
WEAPON_SCAR17FM
WEAPON_PISTOL
âĒ Configurable
WEAPON_M6IC
WEAPON_SNSPISTOL
âĒ Configurable
WEAPON_MICROSMG
WEAPON_PISTOL
âĒ Configurable
Configuration saved in spectro_cacheable_weapons
Real-time updates
Automatic client synchronization
â Why won't my menu open?
Possible causes and solutions:
Missing dependencies
Incorrect resource name
Must be exactly: Spectro_weaponvip
Check case sensitivity
Insufficient permissions
Key conflicts
Change key in config.lua
Try command /weapons
â How do I add new weapons?
Detailed step-by-step:
Get weapon hash
Create structure in addonlist.json
Add attachments (optional)
Grant permissions via admin panel
â What is MenuV and where do I get it?
Complete information:
What is it?: Menu system for FiveM
Is it free?: No, included with script purchase
Is it required?: Yes, script won't work without MenuV
Installation: File and link included with purchase
â Do loadouts save on restart?
Yes, completely:
Saved in MySQL database
Persist between server restarts
Include all weapons and attachments
No time limit
â Can I use this script without framework?
Yes, standalone mode:
Available features:
â License-based permission system
â Complete loadouts
â Admin panel
â Group/job permissions
â Are weapons permanent?
Persistence options:
By default: Temporary weapons
Lost on death/reconnect
With persistence enabled:
Maintained on death/reconnect
â How do I add more administrators?
Available methods:
Via command (in console):
In config.lua:
Direct database:
â How does the logging system work?
Available options:
Server console:
Text file:
Discord webhook:
â Is it compatible with other weapon scripts?
General compatibility:
â All inventories: ox_inventory, lj-inventory, qb-inventory, cheeza-inventory, esx_addoninventory, etc.
â Custom inventories: Your own developed inventory
â Modified inventories: Any customized version
â Crafting scripts
â Ammo scripts
â ī¸ May require adjustments with other weapon menus
Recommended configuration:
â Does it work with all ESX/QBCore versions?
Guaranteed compatibility:
ESX Legacy
ox_inventory, esx_addoninventory, codem-inventory
â 100%
ESX Final
All ESX inventories
â 100%
QBCore
qb-inventory, ox_inventory, lj-inventory, ps-inventory
â 100%
vRP
All vRP inventories
â 100%
Custom
Your own or modified inventory
â 100%
đĨ No additional configuration: Script automatically detects your inventory and framework, working perfectly from first run.
đ Bonus: Includes 2 GTA weapons already configured that you can modify as needed.
â Error: "attempt to index a nil value (field 'Config')"
Causes and solutions:
Config.lua not loaded:
Syntax error in config.lua:
Check commas and brackets
Validate with JSON editor
Incorrect load order:
â Cacheable weapons not working
Step-by-step diagnosis:
Verify it's enabled:
Check per-weapon configuration:
Debug in console:
Verify intervals:
đĄ Auto-detection: Script automatically detects your inventory and framework.
UseCustomInventory
option can be left asfalse
for automatic operation.
spectro_weapon_permissions
Individual permissions
license, weapon_hash, granted_by
spectro_loadouts
Saved configurations
license, name, weapons, components
spectro_cacheable_weapons
Cacheable weapon config
weapon_hash, enabled, required_weapon
spectro_preferences
User preferences
license, open_loadouts
spectro_user_settings
Custom settings
license, settings
When contacting support, always include:
Script version: v1.0
Framework used: ESX/QBCore/vRP/Standalone
Server logs:
Detailed problem description
Steps to reproduce the error
Updates delivered through purchase channel
Changelog included with each update
Guaranteed backward compatibility
This script is protected by copyright. Commercial use or redistribution is prohibited according to purchase license terms.
Documentation updated for Spectro VIP Weapons v1.0 - Last update: 2025