FiveStar Development
YoutubeCFX forumTebexDiscord
  • 👨‍💻About Us
  • 😊Control Panel ⁽ᶠᵒʳ ᶜᵘˢᵗᵒᵐᵉʳˢ ᵒᶠ ᵗʰᵉ ᵒᶠᶠᶦᶜᶦᵃˡ ˢᶦᵗᵉ⁾
    • 📲Active Redeem Code
    • ⬇️Download Script
    • 👾Create License
    • 📅Expiration date
    • ⬅️Reset Data License
  • 🧾Scripts
    • 🆘FiveStar-HelpMenu
      • 🧠How to Install
      • ⏭️Config Script
    • 🛡️FiveStar-Paintball
      • 😘[ESX]
        • 🧠How to Install
        • ⏭️Config Script
      • 🥰[QB]
        • 🧠How to Install
        • ⏭️Config Script
    • 🔫FiveStar-WeaponShop
      • 😘[ESX]
        • 🧠How to Install
        • ⏭️Config Script
      • 🥰[QB]
        • 🧠How to Install
        • ⏭️Config Script
    • 🔐FiveStar-Security [FREE FOR CUSTOMER]
      • 🧠How to Install
      • ⏭️Config Script
    • 🎟️FiveStar-MissionClub
      • 😘[ESX]
        • 🧠How to Install
        • ⏭️Config Script
      • 🥰[QB]
        • 🧠How to Install
        • ⏭️Config Script
    • 🛒FiveStar-VehicleShop
      • 😘[ESX]
        • 🧠How to Install
        • ⏭️Config Script
      • 🥰[QB]
        • 🧠How to Install
        • ⏭️Config Script
    • 💸FiveStar-Subscribe
      • 😘[ESX]
        • 🧠How to Install
        • ⏭️Config Script
      • 🥰[QB]
        • 🧠How to Install
        • ⏭️Config Script
    • 🚘FiveStar-Garage
      • 😘[ESX]
        • 🧠How to Install
        • ⏭️Config Script
      • 🥰[QB]
        • 🧠How to Install
        • ⏭️Config Script
    • 💋FiveStar-Speedometer [FREE]
      • 🧠How to Install
Powered by GitBook
On this page
  • Requirements
  • Add Ammo item
  • Register attachments
  • Add License

Was this helpful?

  1. Scripts
  2. FiveStar-WeaponShop
  3. [ESX]

How to Install

FiveStar Script

Previous[ESX]NextConfig Script

Last updated 9 months ago

Was this helpful?

Requirements

Before starting, make sure you have the latest version of ox_target Script installed on your server

You can fully customize the config file and customize the ox_target or ox_invnetory scripts

Add Ammo item

#1 Make sure that all ammo item are registered in your inventory system.

Befor starting it, go to ox_inventory/data/weapons.lua and add the following items

Config.Ammos = { 
    ["5.56mm"] = { Name = "5.56x45mm", Price = 10, Count = 20 },
    ["7.62mm"] = { Name = "7.62x39mm", Price = 10, Count = 20 },
    ["9mm"] = { Name = "9x19mm", Price = 10, Count = 20 },
    ["12_gauge"] = { Name = "12ga Rifled", Price = 10, Count = 20 },
    ["25_acp"] = { Name = ".25ACP Auto", Price = 10, Count = 20 },
    ["32_acp"] = { Name = "32ACP Auto", Price = 10, Count = 20 },
    ["44_magnum"] = { Name = ".357 Magnum", Price = 10, Count = 20 },
    ["45_acp"] = { Name = "45ACP Auto", Price = 10, Count = 20 },
    ["50mm_bmg"] = { Name = ".50 BMG", Price = 10, Count = 20 },
    ["54r"] = { Name = "7.62x39mm", Price = 10, Count = 20 },
    ["rocket"] = { Name = "Rocket", Price = 10, Count = 20 },
    ["grenade"] = { Name = "Grenade", Price = 10, Count = 20 },
    ["ammo_laser"] = { Name = "Laser charge", Price = 5000, Count = 250 },
}

Example:

['5.56mm'] = {
    label = '5.56x45mm',
    weight = 4,
}
...

#2 In the file ox_inventory/data/weapons.lua, you must define ammo for each weapon

['WEAPON_ADVANCEDRIFLE'] = {
	label = 'Advanced Rifle',
	weight = 3100,
	durability = 0.03,
	ammoname = '5.56mm',
},
...

Register attachments

If you use ox_inventory, some of the weapon components are not added by the ox team and the list is not complete, the script does not encounter problems, but you cannot remove some attachments from the weapon.

Add License

Please put your license in server/license.lua | If your script is encrypted, enter your license

🧾
🔫
😘
🧠
GitHub - overextended/ox_target: Standalone "third-eye" targeting resource.GitHub
Logo
Page cover image
GitHub - overextended/ox_inventory: Slot-based inventory with metadata.GitHub
Logo