Facebook
From Aqua Pintail, 4 Years ago, written in Lua.
This paste is a reply to Re: Hvor er fejlen? from Mathias - view diff
Embed
Download Paste or View Raw
Hits: 373
  1. --[[
  2.         FiveM Scripts
  3.         Copyright C 2018  Sighmir
  4.  
  5.         This program is free software: you can redistribute it and/or modify
  6.         it under the terms of the GNU Affero General Public License as published
  7.         by the Free Software Foundation, either version 3 of the License, or
  8.         at your option any later version.
  9.  
  10.         This program is distributed in the hope that it will be useful,
  11.         but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.         GNU Affero General Public License for more details.
  14.  
  15.         You should have received a copy of the GNU Affero General Public License
  16.         along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17. ]]
  18.  
  19.  
  20. local cfg = {}
  21. -- list of weapons for sale
  22. -- 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)
  23. -- create groups like for the garage config
  24. -- [native_weapon_name] = {display_name,body_price,ammo_price,description}
  25. -- ammo_price can be < 1, total price will be rounded
  26.  
  27. -- _config: blipid, blipcolor, permissions (optional, only users with the permission will have access to the shop)
  28.  
  29. cfg.gunshop_types = {
  30.   ["Elev Våbenrum"] = {
  31.     _config = {permissions = {"elev.loadshop"}},
  32.     ["WEAPON_NIGHTSTICK"] = {"Stav",0,0,""},
  33.     ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""},
  34.     ["WEAPON_STUNGUN"] = {"Strømpistol",0,0,""},
  35.     ["WEAPON_COMBATPISTOL"] = {"USP",0,0,""},
  36.         ["WEAPON_VINTAGEPISTOL"] = {"Fart Måler",0,0,""}      
  37.   },
  38.   ["Politi Våbenrum"] = {
  39.     _config = {permissions = {"police.loadshop"}},
  40.     ["WEAPON_NIGHTSTICK"] = {"Stav",0,0,""},
  41.     ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""},
  42.     ["WEAPON_STUNGUN"] = {"Strømpistol",0,0,""},
  43.           ["WEAPON_COMBATPISTOL"] = {"USP",0,0,""},
  44.     ["WEAPON_SMG"] = {"MP5",0,0,""},
  45.         ["WEAPON_VINTAGEPISTOL"] = {"Fart Måler",0,0,""}
  46.   },
  47.   ["Ledelse Våbenrum"] = {
  48.     _config = {permissions = {"ledelse.loadshop"}},
  49.     ["WEAPON_NIGHTSTICK"] = {"Stav",0,0,""},
  50.     ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""},
  51.         ["WEAPON_STUNGUN"] = {"Strømpistol",0,0,""},
  52.     ["WEAPON_COMBATPISTOL"] = {"USP",0,0,""},
  53.     ["WEAPON_SMG"] = {"MP5",0,0,""},
  54.     ["WEAPON_CARBINERIFLE"] = {"M4A1",0,0,""},  
  55.     ["WEAPON_SNIPERRIFLE"] = {"Sniper",0,0,""}
  56.         ["WEAPON_APPISTOL"] = {"Glock 18",0,0,""},
  57.         ["WEAPON_PUMPSHOTGUN"] = {"Gummikugle Shotgun",0,0,""},
  58.         ["WEAPON_VINTAGEPISTOL"] = {"Fart Måler",0,0,""}
  59.   },
  60.   ["Våbenbutik"] = {
  61.     _config = {blipid=154,blipcolor=1},
  62.           ["WEAPON_BAT"] = {"Bat",5000,0,""},
  63.     ["WEAPON_KNUCKLE"] = {"Knojern",3000,0,""},
  64.     ["WEAPON_FLASHLIGHT"] = {"Lommelygte",0,0,""},
  65.     ["WEAPON_SWITCHBLADE"] = {"Foldekniv",15000,0,""},
  66.     ["WEAPON_KNIFE"] = {"Kniv",10000,0,""},
  67.     ["WEAPON_CROWBAR"] = {"Koben",3500,0,""},
  68.     ["WEAPON_PISTOL"] = {"Glock",1000000,100,""},
  69.     ["WEAPON_PISTOL50"] = {"Deagle",1500000,100,""},
  70.     ["WEAPON_MICROSMG"] = {"UZI",2500000,200,""}
  71.     }
  72. }
  73.  
  74. -- list of gunshops positions
  75.  
  76. cfg.gunshops = {
  77.   {"Ledelse Våbenrum", 459.66836547852,-979.20220947266,30.689582824708},
  78.   {"Politi Våbenrum", 459.66836547852,-979.20220947266,30.689582824708},
  79.   {"Elev Våbenrum", 459.66836547852,-979.20220947266,30.689582824708},
  80.   {"Elev Våbenrum", 1849.0628662109,3690.6613769531,34.267040252686},
  81.   {"Politi Våbenrum", 1849.0628662109,3690.6613769531,34.267040252686},
  82.   {"Ledelse Våbenrum", 1849.0628662109,3690.6613769531,34.267040252686},
  83.   {"Elev Våbenrum", -448.96585083008,6008.4833984375,31.716396331787},
  84.   {"Politi Våbenrum", -448.96585083008,6008.4833984375,31.716396331787},
  85.   {"Ledelse Våbenrum", -448.96585083008,6008.4833984375,31.716396331787},
  86.   {"Våbenbutik", 22.106821060181,-1107.2166748047,29.797029495239}
  87. }
  88.  
  89. return cfg
  90.