Configuration - Server side
With all of our resources, you also get much configuration, here is some explanation for it!
INFO: Config might contain BETA additions, so it might not be 1:1 as yours
Server data - Configuration
Go to pls_companies/sh_config.lua
SH_Config = {}
-------- REMOVE SPECIAL CHARACTERS
local function removeChars(str)
local newStr = str:gsub('[%(%)-]', '')
newStr = newStr:gsub(' ', '')
return newStr
end
-- CONFIG CONTINUE
SH_Config.sendSMS = function(phoneNumber, message)
-- exports["lb-phone"]:SendMessage("Unknown", removeChars(phoneNumber), message)
-- Export for SMS your phone!
end
function SendLogs(source,log_action,action_message,data)
local player = ESX.GetPlayerFromId(source)
local log_data = {
player = GetPlayerName(source),
}
table.insert(log_data,data)
TriggerEvent("logs:send", {
player = player.source, action = log_action,
message = ("Player %s "..action_message):format(GetPlayerName(player.source)),
data = log_data
})
end
function SendLogs2(log_action,action_message,data)
TriggerEvent("logs:send", {
player = log_action,
message = action_message,
data = data
})
end
Warehouses data
Here you can see a server/warehouses_data.lua
example with all additions you'll need
WarehousesData = {}
--[[
______ _ _
| ____| (_) |
| |__ __ ___| |_ ___
| __| \ \/ / | __/ __|
| |____ > <| | |_\__ \
|______/_/\_\_|\__|___/
]]--
WarehousesData.Exits = {
vector4(1087.4352, -3099.4055, -39.0000, 143.5727),
vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
}
--[[
_____ _
/ ____| | |
| | ___ _ __ ___ _ __ _ _| |_ ___ _ __ ___
| | / _ \| '_ ` _ \| '_ \| | | | __/ _ \ '__/ __|
| |___| (_) | | | | | | |_) | |_| | || __/ | \__ \
\_____\___/|_| |_| |_| .__/ \__,_|\__\___|_| |___/
| |
|_|
]]--
-- Location of computers for warehouse management
WarehousesData.Computers = {
vector4(1088.4459, -3101.2004, -39.0000, 96.2971),
vector4(1049.0549, -3100.6733, -39.0000, 128.1557),
}
--[[
__ __ _
\ \ / / | |
\ \ /\ / /_ _ _ __ ___| |__ ___ _ _ ___ ___ ___
\ \/ \/ / _` | '__/ _ \ '_ \ / _ \| | | / __|/ _ \/ __|
\ /\ / (_| | | | __/ | | | (_) | |_| \__ \ __/\__ \
\/ \/ \__,_|_| \___|_| |_|\___/ \__,_|___/\___||___/
]]--
WarehousesData.Warehouses = {
{
name="warehouse1",
enter=vector4(798.0248, -2988.6211, 6.0209, 88.4326),
exit=vector4(1094.988, -3101.776, -39.00363, 88.43),
price=300000,
status = 1,
maxLevel = 3,
route=4000,
},
{
name="warehouse2",
enter=vector4(-1128.5820, 2691.7637, 18.8004, 204.9112),
exit=vector4(1094.988, -3101.776, -39.00363, 88.43),
price=300000,
status = 1,
maxLevel = 3,
route=4001,
},
{
name="warehouse3",
enter=vector4(-379.3119, 6092.8047, 31.4444, 124.1374),
exit=vector4(1094.988, -3101.776, -39.00363, 88.43),
price=300000,
status = 1,
maxLevel = 3,
route=4002,
},
{
name="warehouse4",
enter=vector4(1184.7290, -3167.7883, 7.1187, 268.4354),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4003,
},
{
name="warehouse5",
enter=vector4(-455.6701, -2869.9783, 6.0004, 228.9473),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4004,
},
{
name="warehouse6",
enter=vector4(180.0906, 2792.9844, 45.6551, 275.0539),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4005,
},
{
name="warehouse7",
enter=vector4(-438.7993, -2796.5967, 7.2959, 222.3077),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4006,
},
{
name="warehouse8",
enter=vector4(-465.7575, -2823.5547, 7.2959, 217.9236),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4007,
},
{
name="warehouse9",
enter=vector4(-474.9719, -2832.7695, 7.2959, 219.9265),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4008,
},
{
name="warehouse10",
enter=vector4(-484.4235, -2842.2222, 7.2959, 213.9937),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4009,
},
{
name="warehouse11",
enter=vector4(-492.8248, -2850.6228, 7.2959, 194.2786),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4010,
},
{
name="warehouse12",
enter=vector4(-510.1396, -2867.8320, 7.2959, 235.3966),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=4011,
},
{
name="warehouse13",
enter=vector4(-520.1491, -2877.9299, 7.2959, 217.8105),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40012,
},
{
name="warehouse14",
enter=vector4(-797.7512, -2870.9480, 13.9474, 152.2229),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40013,
},
{
name="warehouse15",
enter=vector4(-827.9546, -2919.3850, 13.9658, 71.3108),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40014,
},
{
name="warehouse16",
enter=vector4(1240.1315, -3322.0369, 6.0280, 98.3659),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40015,
},
{
name="warehouse17",
enter=vector4(226.9381, 132.6966, 103.4069, 68.0463),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40016,
},
{
name="warehouse18",
enter=vector4(43.9438, 6303.7031, 31.2203, 46.7149),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40017,
},
{
name="warehouse19",
enter=vector4(55.5777, 6472.0415, 31.4253, 39.2326),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40019,
},
{
name="warehouse20",
enter=vector4(44.8374, 6461.3193, 31.4253, 72.8034),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40020,
},
{
name="warehouse21",
enter=vector4(38.1076, 6454.5894, 31.4253, 57.8690),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40021,
},
{
name="warehouse22",
enter=vector4(31.3284, 6447.7539, 31.4253, 46.4339),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40022,
},
{
name="warehouse23",
enter=vector4(1710.3737, 4760.2148, 42.0343, 327.6870),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40023,
},
{
name="warehouse24",
enter=vector4(2843.1223, 1456.9426, 24.8633, 248.0125),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40024,
},
{
name="warehouse25",
enter=vector4(109.2998, -1797.4421, 27.0781, 320.9717),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40025,
},
{
name="warehouse26",
enter=vector4(138.9259, -1661.1458, 29.2923, 53.2035),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40026,
},
{
name="warehouse27",
enter=vector4(-127.7288, 1921.4855, 197.3110, 196.8715),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40027,
},
{
name="warehouse28",
enter=vector4(379.4848, 3583.8030, 33.2922, 262.9467),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40028,
},
{
name="warehouse29",
enter=vector4(1930.0024, 4634.9272, 40.4703, 174.0615),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40029,
},
{
name="warehouse30",
enter=vector4(1107.7152, -1967.4348, 31.0012, 45.6156),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40030,
},
{
name="warehouse31",
enter=vector4(-1160.1410, -3524.5015, 13.9402, 323.2002),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40031,
},
{
name="warehouse32",
enter=vector4(-316.8923, -2437.5298, 7.2948, 139.7086),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40032,
},
{
name="warehouse33",
enter=vector4(-307.8835, -2445.0872, 7.2948, 139.6042),
exit=vector4(1048.2343, -3097.2341, -39.0000, 272.5353),
price=500000,
status = 2,
maxLevel = 5,
route=40033,
},
}
--[[
__ __ _ _
\ \ / / | | | |
\ \ /\ / /_ _ _ __ ___| |__ ___ _ _ ___ ___ _ _ _ __ __ _ _ __ __ _ __| | ___ ___
\ \/ \/ / _` | '__/ _ \ '_ \ / _ \| | | / __|/ _ \ | | | | '_ \ / _` | '__/ _` |/ _` |/ _ \/ __|
\ /\ / (_| | | | __/ | | | (_) | |_| \__ \ __/ | |_| | |_) | (_| | | | (_| | (_| | __/\__ \
\/ \/ \__,_|_| \___|_| |_|\___/ \__,_|___/\___| \__,_| .__/ \__, |_| \__,_|\__,_|\___||___/
| | __/ |
|_| |___/
]]--
WarehousesData.Upgrades = {
{
level = 1,
companyMoney = 50000,
rentPricePerDay = 5000,
items={
["screw"] = 50,
["scrapmetal"] = 100,
["ram"] = 2,
}
},
{
level = 2,
companyMoney = 250000,
rentPricePerDay = 10000,
items={
["screw"] = 75,
["scrapmetal"] = 125,
["ram"] = 5,
["cpu"] = 2,
}
},
{
level = 3,
rentPricePerDay = 20000,
companyMoney = 350000,
items={
["screw"] = 250,
["scrapmetal"] = 150,
["ram"] = 8,
["cpu"] = 6,
["graphic"] = 4,
}
},
{
level = 4,
companyMoney = 750000,
rentPricePerDay = 50000,
items={
["screw"] = 400,
["scrapmetal"] = 250,
["gun_spring"] = 50,
["ram"] = 10,
["cpu"] = 5,
["graphic"] = 6,
}
},
}
--[[
_____ _ _ _ _
| __ \ (_) | | | | |
| |__) |__ ___ ___ _| |__ | | ___ _ _ _ __ __ _ _ __ __ _ __| | ___ ___
| ___/ _ \/ __/ __| | '_ \| |/ _ \ | | | | '_ \ / _` | '__/ _` |/ _` |/ _ \/ __|
| | | (_) \__ \__ \ | |_) | | __/ | |_| | |_) | (_| | | | (_| | (_| | __/\__ \
|_| \___/|___/___/_|_.__/|_|\___| \__,_| .__/ \__, |_| \__,_|\__,_|\___||___/
| | __/ |
|_| |___/
]]--
WarehousesData.UpgradesByLevel = {
[1] = {
doors = 4,
alarm = 1,
cctv = 0,
},
[2] = {
doors = 5,
alarm = 0,
cctv = 0,
},
[3] = {
doors = 10,
alarm = 0,
cctv = 0,
},
[4] = {
doors = 5,
alarm = 0,
cctv = 0,
},
[5] = {
doors = 8,
alarm = 0,
cctv = 0,
},
[6] = {
doors = 4,
alarm = 0,
cctv = 0,
},
[7] = {
doors = 4,
alarm = 0,
cctv = 0,
},
[8] = {
doors = 4,
alarm = 0,
cctv = 0,
},
[9] = {
doors = 4,
alarm = 0,
cctv = 0,
},
[10] = {
doors = 4,
alarm = 0,
cctv = 0,
},
}
--[[
__ _______ _ _ _
\ \ / / __ \ | | | | | |
\ V /| |__) | | |__ _ _ | | _____ _____| |
> < | ___/ | '_ \| | | | | |/ _ \ \ / / _ \ |
/ . \| | | |_) | |_| | | | __/\ V / __/ |
/_/ \_\_| |_.__/ \__, | |_|\___| \_/ \___|_|
__/ |
|___/
]]--
-- Levels XP
WarehousesData.Levels = {
[1] = {
XP = 100,
},
[2] = {
XP = 300,
},
[3] = {
XP = 750,
},
[4] = {
XP = 1500,
},
[5] = {
XP = 2500,
},
[6] = {
XP = 5000,
},
[7] = {
XP = 5500,
},
[8] = {
XP = 6000,
},
[9] = {
XP = 8000,
},
[10] = {
XP = 10000,
},
}
WarehousesData.Furniture = {
[1] = {
{
label="Table label", -- Crafting table label
name="workbench", -- UNIQ name from config.lua
prop="prop_pool_rack_01", -- PROP
price = 5000, -- Price for table
type="crafting", -- Type crafting, storage, notusable(for chairs or something)
limitedByActivity = false, -- Is limited by some activity from company table
activity = "", -- If true enter activity name
onlyvisual = false, -- Only visual true / false
},
}
}
-------- Furniture
WarehousesData.Furniture = {
[1] = { -- LEVEL
--- FOR ALL
{
label="Case (1)",
name="smallchest",
prop="ex_prop_adv_case",
price = 40000,
type="storage",
limitedByActivity = false,
activity = "",
storageData = {
weight = 50000,
slots = 20,
}
},
{
label="Billiard - Holder",
name="thepoolholder",
prop="prop_pool_rack_01",
price = 5000,
type="notusable",
limitedByActivity = false,
activity = "",
onlyvisual = true,
},
{
label="Billiard table",
name="thepooltable",
prop="prop_pooltable_02",
price = 15000,
type="notusable",
limitedByActivity = false,
activity = "",
onlyvisual = true,
},
{
label="Work bench",
name="workbench",
prop="bkr_prop_weed_table_01b",
price = 15000,
type="crafting",
limitedByActivity = false,
activity = "",
onlyvisual = false,
},
-- LIMTED
{
label="Weed table",
name="weedtable",
type="crafting",
prop="bkr_prop_weed_table_01a",
price = 50000,
limitedByActivity = true,
activity = "drugscraft"
},
},
[2] = {
{
label="Radio - Alarm",
description="You will receive information that there is a contract in progress that can be raided.",
name="contractradio",
prop="v_res_fa_radioalrm",
price = 200000,
type="other",
limitedByActivity = false,
activity = ""
},
-- LIMITED
{
label="Cocain crafting",
description="Table for cocain crafting",
name="cokebrickmaker",
type="crafting",
prop="bkr_prop_coke_table01a",
price = 350000,
limitedByActivity = true,
activity = "drugscraft"
},
},
[3] = {
{
label="Table for medic crafting",
description="Medic crafting",
name="mediccrafting",
type="crafting",
prop="sm_prop_smug_crate_m_medical",
price = 500000,
limitedByActivity = true,
activity = "drugscraft"
},
},
[4] = {
-- LIMITED
{
label="Table for gun crafting",
description="You can craft big weapons",
name="guncraftingm4",
type="crafting",
prop="gr_prop_gr_bench_01a",
price = 1500000,
limitedByActivity = true,
activity = "guncraft"
},
},
[5] = {
-- LIMITED
{
label="Money printer",
name="moneyprinter",
prop="prop_printer_01",
price = 5000000,
type="crafting",
limitedByActivity = false,
activity = ""
},
},
}
--[[
_____ ____ _ _ _______ _____ _____ _______ _____
/ ____/ __ \| \ | |__ __| __ \ /\ / ____|__ __/ ____|
| | | | | | \| | | | | |__) | / \ | | | | | (___
| | | | | | . ` | | | | _ / / /\ \| | | | \___ \
| |___| |__| | |\ | | | | | \ \ / ____ \ |____ | | ____) |
\_____\____/|_| \_| |_| |_| \_\/_/ \_\_____| |_| |_____/
]]--
WarehousesData.Contacts = {
{
label="Contracts - Drugs",
level = 1,
xp = 2,
company = nil,
taken = false,
contactRecivieItems = {
{name="money",count = 10000,}
},
contactNeedItems = {
{name="weedbrick",count = 1,},
},
Entities = {
peds = {
vector4(288.5997, -3011.4814, 5.8368, 303.4196),
},
vehicles = {
},
}
},
{
label="Contract - Drugs",
level = 1,
xp = 2,
company = nil,
taken = false,
contactRecivieItems = {
{name="money",count = 80000,}
},
contactNeedItems = {
{name="weedbrick",count = 5,},
},
Entities = {
peds = {
vector4(288.5997, -3011.4814, 5.8368, 303.4196),
},
vehicles = {
},
}
},
}
WarehousesData.Jobs = {
{
label="Job - Robbery",
description="Ocean docks... Ambush the truck..",
level = 1,
xp = 3,
company = nil,
taken = false,
type="robbery",
killpeds = false,
rewardToVehicle = false, -- This propably use only for ox inventory
contactRecivieItems = {
{name="bedna_alkoholu",count = 3,}
},
contactNeedItems = nil,
Entities = {
peds = {
{model="csb_chin_goon", pos=vector4(-366.1836, -2604.3271, 6.0003, 249.8356)},
},
vehicles = {
{model="gburrito2", pos=vector4(-368.4277, -2602.7910, 5.8115, 167.0648)},
},
},
CheckPoints = {
},
DispatchData = {
callpolice = true,
title="Robbery",
description="Someone see robbery",
}
},
{
label="Thesis - Murder for hire",
description="Kill the marked person.",
level = 1,
xp = 6,
company = nil,
taken = false,
type="robbery",
killpeds = true,
agresivepeds = true,
weaponpeds = true,
rewardToVehicle = false,
pedskevlar = true,
contactRecivieItems = {
{name="carbon",count = 4,},
{name="money",count = 30000,},
{name="sheetmetal", count = 1},
{name="ram", count = 1},
},
contactNeedItems = nil,
Entities = {
peds = {
{model="csb_chin_goon", pos=vector4(-226.5886, -2363.4973, 25.3304, 184.1579)},
{model="g_m_m_chicold_01", pos=vector4(-222.0887, -2369.2241, 25.3300, 207.2877)},
{model="g_m_m_chicold_01", pos=vector4(-229.3805, -2371.6892, 21.3340, 85.2030)},
{model="g_m_m_chicold_01", pos=vector4(-223.4896, -2374.1406, 21.3281, 222.5351)},
{model="g_m_m_chicold_01", pos=vector4(-235.8819, -2371.3823, 17.3326, 178.5640)},
{model="g_m_m_chicold_01", pos=vector4(-233.9258, -2357.1345, 17.3326, 359.8883)},
{model="g_m_m_chicold_01", pos=vector4(-225.1221, -2354.5774, 17.3335, 266.6259)},
{model="g_m_m_chicold_01", pos=vector4(-212.5215, -2356.0469, 17.3326, 247.3772)},
{model="g_m_m_chicold_01", pos=vector4(-211.4832, -2366.7043, 17.3326, 189.0775)},
{model="g_m_m_chicold_01", pos=vector4(-210.5361, -2373.4436, 9.3127, 166.7800)},
{model="g_m_m_chicold_01", pos=vector4(-207.4055, -2361.3501, 9.3192, 14.2260)},
{model="g_m_m_chicold_01", pos=vector4(-222.6553, -2354.5559, 9.3192, 87.2266)},
{model="g_m_m_chicold_01", pos=vector4(-250.0097, -2369.4905, 9.3192, 195.2767)},
{model="g_m_m_chicold_01", pos=vector4(-241.0132, -2376.2480, 9.3204, 259.9216)},
{model="g_m_m_chicold_01", pos=vector4(-231.1392, -2378.8271, 9.3192, 86.4010)},
{model="g_m_m_chicold_01", pos=vector4(-224.1740, -2377.9436, 9.3192, 263.9897)},
{model="g_m_m_chicold_01", pos=vector4(-197.2647, -2377.8755, 9.3192, 270.6198)},
{model="g_m_m_chicold_01", pos=vector4(-182.1180, -2372.9436, 9.3192, 336.5218)},
{model="g_m_m_chicold_01", pos=vector4(-202.5937, -2371.0381, 20.6127, 89.1851)},
{model="g_m_m_chicold_01", pos=vector4(-197.7421, -2368.0608, 20.6184, 132.5557)},
},
vehicles = {
},
},
CheckPoints = {
},
DispatchData = {
callpolice = true,
title="Robbery",
description="Truck robbery.",
}
},
}
for i, v in pairs(WarehousesData.Jobs) do
v.id = i
end
Last updated