Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Zone = {}
- Config.EventPrefix = 'QBCore' -- Core event prefix
- Config.QBCoreFolderName = 'qb-core' -- Core folder name
- Config.TargetFolderName = 'qb-target' -- name of the target folder
- Config.MenuEventPrefix = 'qb-menu' -- event prefix of menu
- Config.MenuFolderName = 'qb-menu' -- menu folder name
- Config.Inventory = 'qb' -- qb or ox
- Config.DeveloperMod = false -- When server acvite and you not gonna restart the script, developermod off else it will cause issues
- Config.SPRAY_PROGRESSBAR_DURATION = 30 -- How long will it take to create the spray (in sec)
- Config.SPRAY_REMOVE_DURATION = 60 -- How long will it take to remove the spray (in sec)
- Config.EnableContest = true -- true -> will remove the scrath method and spray will be removed after 15 minutse and be replaced with the other gang spray
- Config.ContestTime = 15 -- Contest time in minutes
- Config.MinPlayersForScratch = 6 -- How many gang member needed to be online so player can scratch a graffiti
- Config.MinPlayersForContest = 6 -- How many gang member needed to be online so player can contest a graffiti
- Config.MinGangForRob = 3 -- How many gang member needed to be online so player can rob their NPC
- Config.Radius = 80.0 -- Turf radius
- Config.NPCRadius = 150.0 -- Radius that NPC will spawn
- Config.oneGraffitiInRadius = true -- Can create only one graffiti inside a radius
- Config.mustBeInsideCircle = false -- When creating a spray it must be in their own gang turf Config.oneGraffitiInRadius must be false to work
- Config.CircleRange = 60 -- the range that spray must be inside the turf to work Config.CircleRange - Config.Radius (60 - 80)
- Config.SellTime = 60 -- every X sec, it will sell an item
- Config.SellOneItem = true -- Sell one item at the time (if item amount > 1)
- Config.TimeForNPCRob = 5 -- Time to rob npc (in sec)
- Config.EnableNPC = true -- Enable NPC to spawn
- Config.AmountOfNPCInRadius = 4 -- Amount of NPC in a radius (not suggested more then 5, might cause crashes)
- Config.NotInGameGang = 'none' -- Just check in your qb shared gangs see what is the default gang
- Config.PlayerSQLTable = 'players' -- Players SQL in DataBase
- Config.RadiusForRandomCoords = 30.0 -- Random coods that will be generate within the radius
- Config.RadiusForNPCRobBlip = 500.0 -- Radius for the blip itself
- Config.RobTimeBlip = 10 -- How long the rob blip will be exist in sec
- Config.BlipOpacity = 85 -- the opacity of the blip (0-100)
- Config.BlipSprite = 9 -- Blip itself Suggested 9 (can be found here https://docs.fivem.net/docs/game-references/blips/)
- Config.UseItemBox = 'inventory:client:ItemBox' -- If using the event, change it as you want it, to disable set false
- Config.AllowSellToAllPlayers = true -- Allowing random players (none gang or from other gangs to sell items at the npc)
- Config.NPCSellItemsSlots = 3 -- How many slots each npc will have in his sell items
- Config.NPCSellItemsWeight = 50 -- How much weight each npc will have in his sell items
- Config.NPCInvItemsSlots = 20 -- How many slots each npc will have in his inventory
- Config.NPCInvItemsweight = 200 -- How much weight each npc will have in his inventory
- Config.PrecentForGang = 20 -- How much % the npc of the gang will get to disable set 0
- Config.EnableNPCTarget = true -- enable the target on the npc, false means you will not able to use target on them
- Config.ScratchRemoveMoney = false -- true scratching will make price decrease.
- Config.AmountSprayCanBuy = 2 -- Amount of sprays that can be bought in a restart. Set false to disable
- Config.SprayItemName = 'spray' -- SPRAY item name
- Config.GangMenuItem = 'laptop' -- turf menu Item Name
- Config.SprayRemover = 'sprayremover' -- spray remover, to disable set to false
- Config.ShopCurrency = '$' -- shop currency
- Config.Text = {
- SPRAY_ERRORS = {
- NOT_FLAT = 'This surface is not flat enough',
- TOO_FAR = 'The surface is too far',
- INVALID_SURFACE = 'It cannot be sprayed on this surface',
- AIM = 'Aim the spray at a flat wall',
- },
- PROGRESSBAR = {
- SPRAYING = "Spraying...",
- SCRATCHING = "Scratching Graffiti",
- ROBBING_NPC = "Robbing NPC...",
- },
- NPC_TEXT = {
- PEDHASNOTHING = "This ped has nothing",
- NPCGETROB = "Someone is robbing your npc, location set in GPS",
- NOMONEY = "This npc has no money!",
- NOENOUGHGANG = 'Not enough gang members online!',
- SHOP_HEAD_TEXT = "Graffiti Shop",
- SHOP_FAILED_NO_MONEY = 'You don\'t have enough money',
- SHOP_GRAFFITI = 'Graffiti Buy',
- SHOP_TURFOPTIONS = 'Bought Laptop',
- SHOP_REMOVERBOUGHT = 'Bought Spray Remover',
- NOITEMSTOSELL = 'You got no items to sell',
- NOTENOUGHTITEMS = "You don't have enough items",
- BOUGHTENOUGH = "You can buy only " .. Config.AmountSprayCanBuy .. ' sprays per a day'
- },
- GRAFFITI = {
- GRAF_ACTIVE = 'Activated Turfs!',
- NO_GRAFFITI = 'You haven\'t discover any graffiti',
- GRAF_DISABLE = 'Removed Turfs!',
- GRAFFITIERROR = 'You can not spray inside an existing turf',
- TOOFAR = 'You are too far from the circle',
- NOTFAR = 'You are not far enough from the middle to use the spray',
- CREATE_GRAFFITI = 'Press ~r~ [E]~s~ to spray',
- ALREADY_DISCOVER = 'You already discovered this graffiti',
- NEW_DISCOVER = "You have discoverd new graffiti",
- GRAFFITI_SCRATCH = "Someone is scratching your graffiti, location set in GPS",
- MISSING_REMOVER = "You can not remove the spray you are missing and item",
- CONTEST_WIN_1 = 'Congrates you have killed the leader and the contest is disabled!',
- CONTEST_LOSE_1 = 'You have failed to protect your leader therefore you will not get the spray',
- CONTEST_WIN_2 = 'Congrates you have won the contests and you got new spray!',
- CONTEST_LOSE_2 = 'You have failed to kill thier leader therefore you will lose the spray',
- START_CONTEST_1 = 'A contest on a spray has begun!',
- START_CONTEST_2 = 'A contest on your spray has begun! location set to GPS',
- },
- TARGET_GRAFFITI = {
- DISCOVER = 'Discover',
- DIS_ICON = 'fas fa-search',
- SCRATCH = 'Scratch',
- SCRA_ICON = 'fas fa-tools',
- CONTEST = 'Contest',
- CONTEST_ICON = 'fas fa-crosshairs',
- NPC_SHOP_TEXT = 'Open Shop',
- NPC_SHOP_ICON = 'fas fa-shopping-basket',
- ROB_NPC = 'Rob Gang NPC',
- ROB_NPC_ICON = 'fas fa-bullseye',
- TAKE_NPC_MONEY = 'Take Money',
- TAKE_NPC_MONEY_ICON = 'fas fa-coins',
- OPEN_INV_NPC = 'Open Inventory',
- OPEN_INV_NPC_ICON = 'fas fa-shopping-bag',
- SELL_ITEMS_NPC = 'Sell Items',
- SELL_ITEMS_NPC_ICON = 'fas fa-money-bill-alt',
- }
- }
- Config.Gangs = {
- ['ballas'] = { -- Gang Name
- spray = 'sprays_ballas', -- spray name (ydr)
- blipcolor = 27, -- blip color on map (can be found here: https://docs.fivem.net/docs/game-references/blips/)
- ped = 'g_m_y_ballaorig_01', -- ped you want to spawn in your turf (can be found here: https://docs.fivem.net/docs/game-references/ped-models/)
- -- PAY ATTENTION adding a ped here will make him not spawn anywhere else expect the in the turfs
- graffitiRGB = {r = 148, g = 0, b = 211}, -- particals color for the spray itself
- },
- ['vagos'] = {
- spray = 'sprays_vagos',
- blipcolor = 5,
- ped = 'u_m_y_mani',
- graffitiRGB = {r = 255, g = 255, b = 0},
- },
- ['lostmc'] = {
- spray = 'sprays_lostmc',
- blipcolor = 22,
- ped = 'g_m_y_lost_01',
- graffitiRGB = {r = 105, g = 105, b = 105},
- },
- ['gsf'] = {
- spray = 'sprays_gsf',
- blipcolor = 43,
- ped = 'g_m_y_famca_01',
- graffitiRGB = {r = 0, g = 100, b = 0},
- },
- ['marabunta'] = {
- spray = 'sprays_marabunta',
- blipcolor = 27,
- ped = 'g_m_y_salvagoon_01',
- graffitiRGB = {r = 148, g = 0, b = 211},
- },
- }
- Config.ShopInfo = {
- [1] = { -- There can be multiple shops
- NPCSeller = 'a_m_m_og_boss_01', -- what ped will sell the spray
- NPCLocation = vector4(141.5036, -842.3974, 30.95848, 242.5168), -- Pay attention it vector4
- SprayPrice = 500, -- original spray price, price will be price * priceMulti ^ lvl
- SprayRemoverPrice = 500, -- Spray remover price
- TurfOtionsPrice = 2000, -- Price for the turf data
- SprayPriceMulti = 2, -- how much times will you pay more for each lvl, lvl 20 * 2.0 * 1000 = 30k for lvl 20
- ShowBlip = true, -- if you want blip to be shown
- Scale = 0.8, -- blip scale
- ShopBlip = 72, -- can be found here https://docs.fivem.net/docs/game-references/blips/ or set false to disable
- ShopBlipColor = 1, -- can be found here https://docs.fivem.net/docs/game-references/blips/
- Title = "Spray Shop", -- the title of the blip
- DistanceSpawn = 50.0, -- if distance between npc and you > ... npc will dispawn
- },
- }
- Config.ItemsForSale = { -- Items that only gangs can sell to their npc
- ["band"] = {money = 1500, ganglvl = 5},
- ["cashstack"] = {money = 500, ganglvl = 5},
- ["headphones"] = {money = 100, ganglvl = 5},
- }
- Config.SellItems = { -- Items that every player can sell
- ["cashstack"] = {money = 500, ganglvl = 5},
- }
Add Comment
Please, Sign In to add comment