ALL SCRIPTS ESCROWED USING FIVEM ESCROW SYSTEM
(1) StreetCode AI TrapHouse - YouTube
QB Required
Ox Lib Required
Not a heavy config option since players can edit stuff in game..
Config = {}
Config.NewESX = true
Config.Locale = 'en'
----------------
--Settings---------------
----------------
Config.Mysql = "mysql-async"
Config.PercentTaken = 10 --percent taken by trapper from each sell
Config.Title = 'STREETCODE TRAPPY'
Config.NotySystem = 'GKS' ---(options) ESX, GKS,NEWGKS, QS, NEWQS, CUSTOM (ESX< GKS< QUASAR< LB PHONE< CUSTOM)
Config.AngryChance = 20 ---chance ped fights for driving all the way there and drug not being available
Config.Weapons4Peds = { --list of weapons that clients may have
"WEAPON_PISTOL",
"WEAPON_SWITCHBLADE",
"WEAPON_KNIFE",
"WEAPON_MINISMG"
}
Config.Models = { ---list of peds that can be clients
"u_m_m_aldinapoli",
"a_m_m_afriamer_01",
"s_m_y_ammucity_01",
"mp_s_m_armoured_01",
"s_m_m_autoshop_02",
"g_m_y_ballasout_01",
"a_m_y_beach_03"
}
Config.Cars = {'zentorno','t20'}--list of cars for clients to pull up in
-----Add Drugs in weed, soft drugs and hard drugs categories to your server liking
Config.PhoneItem = 'phone'
Config.Weapons = { -- LIST OF WEAPONS THAT CAN BE GIVEN TO HELPER.
"WEAPON_DAGGER",
"WEAPON_BAT",
"WEAPON_BOTTLE",
"WEAPON_CROWBAR",
"WEAPON_FLASHLIGHT",
"WEAPON_GOLFCLUB",
"WEAPON_HAMMER",
"WEAPON_HATCHET",
"WEAPON_KNUCKLE",
"WEAPON_KNIFE",
"WEAPON_MACHETE",
"WEAPON_SWITCHBLADE",
"WEAPON_NIGHTSTICK",
"WEAPON_WRENCH",
"WEAPON_BATTLEAXE",
"WEAPON_POOLCUE",
"WEAPON_STONE_HATCHET",
"WEAPON_PISTOL",
"WEAPON_PISTOL_MK2",
"WEAPON_COMBATPISTOL",
"WEAPON_APPISTOL",
"WEAPON_STUNGUN",
"WEAPON_PISTOL50",
"WEAPON_SNSPISTOL",
"WEAPON_SNSPISTOL_MK2",
"WEAPON_HEAVYPISTOL",
"WEAPON_VINTAGEPISTOL",
"WEAPON_FLAREGUN",
"WEAPON_MARKSMANPISTOL",
"WEAPON_REVOLVER",
"WEAPON_REVOLVER_MK2",
"WEAPON_DOUBLEACTION",
"WEAPON_RAYPISTOL",
"WEAPON_CERAMICPISTOL",
"WEAPON_NAVYREVOLVER",
"WEAPON_MICROSMG",
"WEAPON_SMG",
"WEAPON_SMG_MK2",
"WEAPON_ASSAULTSMG",
"WEAPON_COMBATPDW",
"WEAPON_MACHINEPISTOL",
"WEAPON_MINISMG",
"WEAPON_RAYCARBINE",
"WEAPON_PUMPSHOTGUN",
"WEAPON_PUMPSHOTGUN_MK2",
"WEAPON_SAWNOFFSHOTGUN",
"WEAPON_ASSAULTSHOTGUN",
"WEAPON_BULLPUPSHOTGUN",
"WEAPON_MUSKET",
"WEAPON_HEAVYSHOTGUN",
"WEAPON_DBSHOTGUN",
"WEAPON_AUTOSHOTGUN",
"WEAPON_ASSAULTRIFLE",
"WEAPON_ASSAULTRIFLE_MK2",
"WEAPON_CARBINERIFLE",
"WEAPON_CARBINERIFLE_MK2",
"WEAPON_ADVANCEDRIFLE",
"WEAPON_SPECIALCARBINE",
"WEAPON_SPECIALCARBINE_MK2",
"WEAPON_BULLPUPRIFLE",
"WEAPON_BULLPUPRIFLE_MK2",
"WEAPON_COMPACTRIFLE",
"WEAPON_MG",
"WEAPON_COMBATMG",
"WEAPON_COMBATMG_MK2",
"WEAPON_GUSENBERG",
"WEAPON_SNIPERRIFLE",
"WEAPON_HEAVYSNIPER",
"WEAPON_HEAVYSNIPER_MK2",
"WEAPON_MARKSMANRIFLE",
"WEAPON_MARKSMANRIFLE_MK2",
"WEAPON_RPG",
"WEAPON_GRENADELAUNCHER",
"WEAPON_GRENADELAUNCHER_SMOKE",
"WEAPON_MINIGUN",
"WEAPON_FIREWORK",
"WEAPON_RAILGUN",
"WEAPON_HOMINGLAUNCHER",
"WEAPON_COMPACTLAUNCHER",
"WEAPON_RAYMINIGUN",
}
Config.Items = {"sccokesmall", "scfentsmall", "schersmall"}
Config.ItemLabels = { --- add any drugs you add here also for label of drug when trapping...
["sccokesmall"] = "Coke",
["scfentsmall"] = "Fentanyl",
["schersmall"] = "Heroin",
}
Config.MinPrice = { --- add any drugs you add here also for label of drug when trapping...
["sccokesmall"] = 80,
["scfentsmall"] = 80,
["schersmall"] = 70
}
Config.MaxPrice = { --- add any drugs you add here also for label of drug when trapping...
["sccokesmall"] = 100,
["scfentsmall"] = 120,
["schersmall"] = 90
}
Config.maxCap = 200 ---Cap on foot trapping per restart
Config.MaxSell = 5 ----Max number of items to be sold at a time
Config.BlackMoney = true---Regular Selling pay type(Not The Gang area selling)
Config.MaxWaitTime = 20000 ---- 2 minutes
----------------
--Delivery Notification:---------------
----------------
Config.Title = 'TrapHouse'
--Edit Notificantion system ---check Config.NotySystem to choose option dont edit unless adding custom phone
function ShowNotifyESX(msg)
if Config.NotySystem == 'ESX' then
ESX.ShowNotification(msg)
--------------------------------
---OLD GKS Phone
elseif Config.NotySystem == 'GKS' then
TriggerEvent('gksphone:notifi', {title = 'TrapHouse', message = msg , img= '/html/static/img/icons/vale.png' })
--------------------------------
--------------------------------
---NEW GKS Phone
elseif Config.NotySystem == 'NEWGKS' then
local NotifData = {
title = Config.Title,
message = msg,
img= '/html/static/img/icons/messages.png',
duration = 5000}
exports["gksphone"]:SendNotification(NotifData)
--------------------------------
---Quasar
elseif Config.NotySystem == 'QS' then
TriggerEvent('qs-smartphone:client:notify', {
title = Config.Title,
text = msg,
icon = "./img/apps/whatsapp.png",
timeout = 1500
})
-------------------------------
---New Quasar
elseif Config.NotySystem == 'NEWQS' then
exports['qs-smartphone-pro']:SendTempNotification({
title = Config.Title,
text = msg,
app = 'settings',
timeout = 5000,
disableBadge = true, -- Disables the badge on the app icon.
})
------------------------------------------
---lb phone--
elseif Config.NotySystem == 'LB' then
exports["lb-phone"]:SendNotification({
app = "Birdy", -- the app to send the notification to (optional)
title = "TrapHouse", -- the title of the notification
content = msg, -- the description of the notification
})
--------------------------------
---Add your own phone message function or uncomment esx.shownoti and commeent phone functon instead
elseif Config.NotySystem == 'CUSTOM' then
end
end