Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Added a function to grant perm weapons PLAYER:GrantPermWeapon(CatID, WepID)
- CatID is the table index and WepID is the weapons index
- Config changes:
- Added index numbers to config (makes it easier to read CatID and WepID)
- ]]
- PermItemsConfig = PermItemsConfig or {}
- //Chatcommands to open the menu
- PermItemsConfig.MenuChatCommands = {"!permweapons","!permentities","!permmenu"}
- //Who can access admin commands etc
- PermItemsConfig.AdminAccessCustomCheck = function(Player) return Player:IsSuperAdmin() end
- --[[
- "darkrpwallet" = DarkRP cash
- "ps1" = Pointshop 1
- "pcurrency" = Inbuilt currency system
- ]]
- PermItemsConfig.Currency = "darkrpwallet"
- PermItemsConfig.CurrencyName = "Credit"
- //Used for $,?,? for example
- PermItemsConfig.CurrencySymbol = "[#7]"
- //NPC model
- PermItemsConfig.NPCModel = "models/hgn/swrp/swrp/droid_warbot.mdl"
- //Text above NPC
- PermItemsConfig.NPCText = "Weapon Skins"
- //If chatcommand should be disabled or not
- PermItemsConfig.AllowMenuCMD = true
- //Allow selling of weapons/Entities
- PermItemsConfig.AllowSelling = true
- //How much % of the original price should be given when sold?
- PermItemsConfig.SellRate = 1
- //Disable perm entities
- PermItemsConfig.EnableEntities = false
- //Grants weapons on spawn/change team etc if set to true, set to false if you want spawned only through menu
- PermItemsConfig.GrantLoadout = true
- //Make it return false for the conditions that shouldnt allow opening it and true for those who should
- //For example, this allows only admins to open the menu
- --[[
- if Player:IsAdmin() then
- return true
- else
- return false
- end
- ]]
- PermItemsConfig.OpenMenuCheck = function(Player) return true end
- //Font for the menus
- PermItemsConfig.Font = "Trebuchet18"
- //For changing colors on the menus
- PermItemsConfig.FrameColor = Color(200,200,200,200)
- PermItemsConfig.FrameOutline = Color(0,0,0,255)
- PermItemsConfig.HeaderColor = Color(50,50,50,200)
- PermItemsConfig.ColorBoxes = Color(150,150,150,200)
- PermItemsConfig.ColorBoxesOutlines = Color(50,50,50,200)
- PermItemsConfig.ButtonColor = Color(0,0,0,200)
- PermItemsConfig.ButtonColorHovering = Color(75,75,75,200)
- PermItemsConfig.ButtonColorPressed = Color(125,125,125,200)
- --{Category Name, {Ent Class, Description, Cost, Model, Name}}
- --NOTE: ONLY ADD MODEL AND NAME if it requires overriding, for example if SWEP uses base name+model
- --An example of a weapon that requires the model+name to be overridden
- --{"weapon_vape", "A classic vape", 300, "models/swamponions/vape.mdl", "Vape"},
- PermItemsConfig.WeaponsList = {
- [1] = {"Explosive Expert"}, {
- [1] = {"tfa_swch_clonelauncher_2", "Rocket Launcher", 20000},
- [2] = {"weapon_swrc_det", "Detonators", 5000},
- }
- }
- [2] = {"Heavy Weapons Expert"}, {
- [1] = {"chaingun_servius", "Shoulder Mounted Minigun", 15000},
- [2] = {"tfa_dlt19_extended", "DLT-19", 12500},
- [3] = {"tfa_kotor_repeaten_1", "Repeating Blaster T1", 10000},
- }
- }
- [3] = {"Long Range Weapons Expert"}, {
- [1] = {"tfa_dlt20a_extended", "DLT-20A", 15000},
- [2] = {"tfa_scoutblaster_extended", "Scout Pistol", 10000},
- }
- }
- [4] = {"General Weapons"}, {
- [1] = {"tfa_sw_dc17dual", "Dual-DC-17", 5000},
- [2] = {"tfa_t21_extended", "T-21", 10000},
- [3] = {"tfa_umbaran_blue", "Umbaran Rifle", 12500},
- [4] = {"tfa_kotor_bp_5", "Standard Blaster Pistol", 500},
- [5] = {"tfa_kotor_rifle", "Standard Blaster Rifle", 500},
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement