--[[ FiveM Scripts Copyright C 2018 Sighmir This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or at your option any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . ]] local cfg = {} -- list of weapons for sale -- for the native name, see https://wiki.fivem.net/wiki/Weapons (not all of them will work, look at client/player_state.lua for the real weapon list) -- create groups like for the garage config -- [native_weapon_name] = {display_name,body_price,ammo_price,description} -- ammo_price can be < 1, total price will be rounded -- _config: blipid, blipcolor, permissions (optional, only users with the permission will have access to the shop) cfg.gunshop_types = { ["Elev Våbenrum"] = { _config = {permissions = {"elev.loadshop"}}, ["WEAPON_NIGHTSTICK"] = {"Stav",0,0,""}, ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""}, ["WEAPON_STUNGUN"] = {"Strømpistol",0,0,""}, ["WEAPON_COMBATPISTOL"] = {"USP",0,0,""}, ["WEAPON_VINTAGEPISTOL"] = {"Fart Måler",0,0,""} }, ["Politi Våbenrum"] = { _config = {permissions = {"police.loadshop"}}, ["WEAPON_NIGHTSTICK"] = {"Stav",0,0,""}, ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""}, ["WEAPON_STUNGUN"] = {"Strømpistol",0,0,""}, ["WEAPON_COMBATPISTOL"] = {"USP",0,0,""}, ["WEAPON_SMG"] = {"MP5",0,0,""}, ["WEAPON_VINTAGEPISTOL"] = {"Fart Måler",0,0,""} }, ["Ledelse Våbenrum"] = { _config = {permissions = {"ledelse.loadshop"}}, ["WEAPON_NIGHTSTICK"] = {"Stav",0,0,""}, ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""}, ["WEAPON_STUNGUN"] = {"Strømpistol",0,0,""}, ["WEAPON_COMBATPISTOL"] = {"USP",0,0,""}, ["WEAPON_SMG"] = {"MP5",0,0,""}, ["WEAPON_CARBINERIFLE"] = {"M4A1",0,0,""}, ["WEAPON_SNIPERRIFLE"] = {"Sniper",0,0,""} ["WEAPON_APPISTOL"] = {"Glock 18",0,0,""}, ["WEAPON_PUMPSHOTGUN"] = {"Gummikugle Shotgun",0,0,""}, ["WEAPON_VINTAGEPISTOL"] = {"Fart Måler",0,0,""} }, ["Våbenbutik"] = { _config = {blipid=154,blipcolor=1}, ["WEAPON_BAT"] = {"Bat",5000,0,""}, ["WEAPON_KNUCKLE"] = {"Knojern",3000,0,""}, ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""}, ["WEAPON_SWITCHBLADE"] = {"Foldekniv",15000,0,""}, ["WEAPON_KNIFE"] = {"Kniv",10000,0,""}, ["WEAPON_CROWBAR"] = {"Koben",3500,0,""}, ["WEAPON_PISTOL"] = {"Glock",1000000,100,""}, ["WEAPON_PISTOL50"] = {"Deagle",1500000,100,""}, ["WEAPON_MICROSMG"] = {"UZI",2500000,200,""} } } -- list of gunshops positions cfg.gunshops = { {"Ledelse Våbenrum", 459.66836547852,-979.20220947266,30.689582824708}, {"Politi Våbenrum", 459.66836547852,-979.20220947266,30.689582824708}, {"Elev Våbenrum", 459.66836547852,-979.20220947266,30.689582824708}, {"Elev Våbenrum", 1849.0628662109,3690.6613769531,34.267040252686}, {"Politi Våbenrum", 1849.0628662109,3690.6613769531,34.267040252686}, {"Ledelse Våbenrum", 1849.0628662109,3690.6613769531,34.267040252686}, {"Elev Våbenrum", -448.96585083008,6008.4833984375,31.716396331787}, {"Politi Våbenrum", -448.96585083008,6008.4833984375,31.716396331787}, {"Ledelse Våbenrum", -448.96585083008,6008.4833984375,31.716396331787}, {"Våbenbutik", 22.106821060181,-1107.2166748047,29.797029495239} } return cfg