Download from keymaster and unzip the Weapon Shop. Move nv_weaponshop in your server's resource folder.
Add the resource to your server start config: ensure nv_weaponshop, the name of the folder must not be changed or the resource will not function correctly. Ensure the script is the latest one.
Open the config.lua and configure it correctly, paying attention to all the variables!
Restart server or type ensure nv_weaponshop in console.
Code
Support
If you have any problems or need help, contact us on Discord!
# ...
# All the other resources
ensure nv_weaponshop
-- If you want to use ESX = enable this.
-- If you want to use STANDALONE = disable this
isESX = true
shopName = "Nevera"
shopDesc = "Weapon Shop"
shopMessage = "Press E to open Weapon Shop"
shopAccessButton = 38 -- This is E button, you can find index on - https://docs.fivem.net/docs/game-references/controls/#controls
theme = {r=255,g=150,b=0} -- THIS IS RGB CODE. You can go on "https://www.google.com/search?q=html+color+picker" and pick color what you want and pase RGB color here.
categories = {
"all",
"melee",
"pistol",
"rifles",
"machine",
"shotgun",
"smg",
"sniper",
"heavy",
"other"
}
weapon_shop_locations = {
{x=-662.1, y= -935.3, z = 21.8},
{x=810.2, y= -2157.3, z = 29.6},
{x=1693.4, y= 3759.5, z = 34.7},
{x=-330.2, y= 6083.8, z = 31.4},
{x=252.3, y= -50.0, z = 69.9},
{x=22.0, y= -1107.2, z = 29.8},
{x=2567.6, y= 294.3, z = 108.7},
{x=-1117.5, y= 2698.6, z = 18.5},
{x=842.4, y= -1033.4, z = 28.1},
{x=-3172.4, y= 1087.7, z = 20.8},
{x=-1305.6, y= -394.3, z = 36.6}
}
-- If you want to add your weapons, you need to follow this pattern:
-- Additionally, ensure you add the weapon image with the corresponding weapon_id in the assets/img/weapons/ directory.
--[[
-----------------------------------------------------
{
name = "M134 Minigun",
id = "weapon_minigun",
short = "7.62x51mm NATO",
desc = "The M134 Minigun is an American 7.62x51mm NATO six-barrel rotary machine gun with a high rate of fire (2,000 to 6,000 rounds per minute)",
price = 1000,
type = "heavy",
mini = {
short = "7.62x51mm NATO",
weight = 3.45, --KG
tag = "M134 Minigun"
}
}
-----------------------------------------------------
]]--
weapons = {
{
name = "M134 Minigun",
id = "weapon_minigun",
short = "7.62x51mm NATO",
desc = "The M134 Minigun is an American 7.62x51mm NATO six-barrel rotary machine gun with a high rate of fire (2,000 to 6,000 rounds per minute)",
price = 10000,
type = "heavy",
mini = {
short = "7.62x51mm NATO",
weight = 3.45, --KG
tag = "M134 Minigun"
}
},
}