📃Configs
Config = {}
-- Utility
Config.Framework = "qb" -- "qb" or "esx"
Config.Core = "qb-core" -- Your qb-core folder name ( If you use ESX ignore this )
Config.Target = "ox" -- "qb" or "ox"
Config.Inventory = "ox" -- "qb" or "ox"
Config.Notify = "ox" -- "standalone", "qb" or "okok" or "ox" or "codem" ( open code on config_functions.lua )
Config.AutoDatabase = true -- Create table on database automatically? ( If you use oxmysql ignore this option )
-- Location Settings
Config.EnterWarehouse = vector3(1197.16, -3253.59, 7.1) -- Location where ped interact to enter on warehouse
Config.ExitWarehouse = vector3(1138.03, -3199.15, -39.67) -- Location where ped interact to exit the warehouse
Config.StartLocation = {
pedModel = "cs_bankman",
pedCoords = vec4(448.53, -2761.4, 7.1, 62.0) -- Location where ped interact to receive key and waypoint
}
-- Wash Settings
Config.Minigame = false -- Enable minigame before start washing?
Config.Metadata = true -- Your blackmoney has metadata? ( If you use ox_inventory ignore this option )
Config.Washing = {
item_name = "black_money", -- Your black money item name
min_amount = 2500, -- Min amount player can wash
max_amount = 50000, -- Max amount player can wash
tax_amount = 10, -- 10% Player loses when wash money
timer = 10, -- 10 Seconds x each 1000 black money
}
-- Police Settings
Config.Police = {
needOnline = false, -- Need police online to wash money?
amount = 2, -- Amount of police online to wash money
jobs = {"police", "lspd"} -- Your police jobs
}if Config.Framework == "qb" then
QBCore = exports[Config.Core]:GetCoreObject()
elseif Config.Framework == "esx" then
ESX = exports.es_extended:getSharedObject()
else
print("Invalid framework specified in Config.Framework")
end
function Notify(text, type, time)
if Config.Notify == "standalone" then
BeginTextCommandThefeedPost("STRING")
AddTextComponentSubstringPlayerName(text)
EndTextCommandThefeedPostTicker(true, true)
elseif Config.Notify == "qb" then
QBCore.Functions.Notify(text, type, time)
elseif Config.Notify == "okok" then
exports['okokNotify']:Alert('Notification', text, time, type, true)
elseif Config.Notify == "ox" then
lib.notify({ title = 'Notification', description = text, type = type })
elseif Config.Notify == "codem" then
TriggerEvent('codem-notification:Create', text, type, 'Insurance', time)
end
end
function StartMinigame()
local success = lib.skillCheck({'easy', 'easy', {areaSize = 60, speedMultiplier = 1}, 'easy'}, {'w', 'a', 's', 'd'})
return success
end
Last updated