ORGANS TRAFFIC
Last updated
Was this helpful?
Last updated
Was this helpful?
DEPENDENCIES YOU NEED TO RUN S_ORGANSTRAFFIC
QB-TARGET OR OX_TARGET - OX_LIB -
The installation is the same for both framework QBCore and ESX
2.1. Resource Put the folder of s_organstraffic inside your resources folder, and start it on your server.cfg 2.2. Images Copy the images inside images folder to your images inventory folder 2.3. Items Create the items that come in the READ.ME file in your shared file or database.
All options you can configure is explained in the config file!
Config = {}
--#### GERAL ####--
Config.Target = 'qb-target' --- @param 'qb-target' or 'ox_target'
Config.InteractPlayers = true --- @param Set to 'false' if you dont want to get organs from dead players.
Config.InteractPeds = true --- @param Set to 'false' if you dont want to get organs from dead Peds.
-- Geral
Config.TimeOpeningBody = math.random(1000 * 5, 1000 * 7) --- @param Modify how much time it take to search a body
Config.JobRequired = false --- @param Set if true only the jobs set will be able to search dead bodys for organs.
Config.JobsOrgansTraffic = {"police", "lafamilia"} --- @param Set the jobs that have acess to repair system if Config.JobRequired true.
--#### ITEMS AND SELLING ####--
Config.Organs = { --- @param Set here the name of the items, or create this items in ur server they are on READ.ME file
['heart'] = { itemname = 'heart', label = 'Heart', price = 1000},
['pancreas'] = { itemname = 'pancreas', label = 'Pancreas', price = 1000},
['stomach'] = { itemname = 'stomach', label = 'Stomach', price = 1000},
['liver'] = { itemname = 'liver', label = 'Liver', price = 1000},
['kidneys'] = { itemname = 'kidneys', label = 'Kidneys', price = 1000},
['lungs'] = { itemname = 'lungs', label = 'Lungs', price = 1000},
['intestines'] = { itemname = 'intestines', label = 'Intestines', price = 1000},
['brain'] = { itemname = 'brain', label = 'Brain', price = 2000},
}
Config.EnableSell = true
Config.BuyerPed = {pos = vector3(1251.18, -2912.26, 9.32)}
--- @param Set 'money' to receive normal money 'QB & ESX'
--- @param Set 'item' to receive as item 'QB & ESX', in this case set the 'itemname' of your blackmoney item.
--- @param Set 'blackmoney' to receive on blackmoney account 'ESX ONLY'
Config.RewardType = {type = 'item', itemname = 'black_money'}
function ShowNotification(msg, type) --- @param Modify normal notifications
if type == 'primary' then
lib.notify({description = msg, type = 'primary'})
--ESX.ShowNotification(msg)
--QBCore.Functions.Notify(msg, "primary")
end
if type == 'error' then
lib.notify({description = msg, type = 'error'})
--ESX.ShowNotification(msg)
--QBCore.Functions.Notify(msg, "error")
end
if type == 'success' then
lib.notify({description = msg, type = 'success'})
--ESX.ShowNotification(msg)
--QBCore.Functions.Notify(msg, "success")
end
end
-- _____ ____ _ __ __ _______ _____ ____ _ __
-- | ___| _ \ / \ | \/ | ____\ \ / / _ \| _ \| |/ /
-- | |_ | |_) | / _ \ | |\/| | _| \ \ /\ / / | | | |_) | ' /
-- | _| | _ < / ___ \| | | | |___ \ V V /| |_| | _ <| . \
-- |_| |_| \_\/_/ \_\_| |_|_____| \_/\_/ \___/|_| \_\_|\_\
--- @param Change here the name of your resource framework if is custom or dont touch
Config.FrameworkESXResourceName = 'es_extended'
Config.FrameworkQBResourceName = 'qb-core'
--- @param Dont touch below, it will auto detect what framework u use
if GetResourceState(Config.FrameworkESXResourceName) == 'started' then
Config.Framework = 'ESX'
elseif GetResourceState(Config.FrameworkQBResourceName) == 'started' then
Config.Framework = 'QBCore'
end
--- @param Modify it if you use an ESX Custom or dont touch.
Config.getSharedObject = "esx:getSharedObject"
Config.setJob = "esx:setJob"
Config.playerLoaded = "esx:playerLoaded"