
🧠How to Install
FiveStar Script
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
Last updated
Was this helpful?