HexscriptsVersion 3.0Warehouse
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
Config.Debug = false -- Set to true to enable debug messages in the console
Config.Locale = 'automatic' -- automatic, en, de, es, fr, it, nl, pl, pt, tr, ar
Config.Framework = 'automatic' -- automatic, esx, qbcore, standalone
Config.ServerName = 'HEXSCRIPTS'
Config.Weight = {}
Config.ItemImagePath = './img/items/'
if not IsDuplicityVersion() then
if GetResourceState('inventory') == 'started' then
Config.ItemImagePath = 'https://cfx-nui-inventory/web/assets/icons/'
elseif GetResourceState('ox_inventory') == 'started' then
Config.ItemImagePath = 'https://cfx-nui-ox_inventory/web/images/'
end
end
Config.NeedTeleport = true -- Set to true if you want to teleport the player to the storage interior when accessing their warehouse
Config.Positions = {
[1] = {
coords = vector3(795.5626, -2970.5620, 6.0209),
heading = 78.6224,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
blip = {
enable = true,
sprite = 50,
display = 4,
color = 0,
scale = 0.8,
shortRange = true,
name = 'Lagerhalle'
},
types = {
{
price = 10000000,
reSell = 1000000,
maxStorage = 1000,
img = 'img/storages/storage_1.png',
position = {
coords = vector3(1087.8090, -3099.3794, -38.9999),
heading = 267.8410,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1088.5448, -3101.3147, -38.9999),
heading = 90.5752,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 20000000,
reSell = 2000000,
maxStorage = 2000,
img = 'img/storages/storage_2.png',
position = {
coords = vector3(1048.2322, -3097.1882, -38.9999),
heading = 271.4607,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1049.0596, -3100.5078, -38.9999),
heading = 88.2212,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 35000000,
reSell = 3500000,
maxStorage = 3000,
img = 'img/storages/storage_3.png',
position = {
coords = vector3(992.3282, -3097.9185, -38.9959),
heading = 272.6369,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(994.5421, -3100.1375, -38.9959),
heading = 270.4116,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
}
},
[2] = {
coords = vector3(853.1621, -2433.0640, 28.0622),
heading = 177.7948,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
blip = {
enable = true,
sprite = 50,
display = 4,
color = 0,
scale = 0.8,
shortRange = true,
name = 'Lagerhalle'
},
types = {
{
price = 10000000,
reSell = 1000000,
maxStorage = 1000,
img = 'img/storages/storage_1.png',
position = {
coords = vector3(1087.8090, -3099.3794, -38.9999),
heading = 267.8410,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1088.5448, -3101.3147, -38.9999),
heading = 90.5752,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 20000000,
reSell = 2000000,
maxStorage = 2000,
img = 'img/storages/storage_2.png',
position = {
coords = vector3(1048.2322, -3097.1882, -38.9999),
heading = 271.4607,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1049.0596, -3100.5078, -38.9999),
heading = 88.2212,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 35000000,
reSell = 3500000,
maxStorage = 3000,
img = 'img/storages/storage_3.png',
position = {
coords = vector3(992.3282, -3097.9185, -38.9959),
heading = 272.6369,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(994.5421, -3100.1375, -38.9959),
heading = 270.4116,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
}
},
[3] = {
coords = vector3(-2188.2231, -408.7685, 13.1721),
heading = 228.7587,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
blip = {
enable = true,
sprite = 50,
display = 4,
color = 0,
scale = 0.8,
shortRange = true,
name = 'Lagerhalle'
},
types = {
{
price = 10000000,
reSell = 1000000,
maxStorage = 1000,
img = 'img/storages/storage_1.png',
position = {
coords = vector3(1087.8090, -3099.3794, -38.9999),
heading = 267.8410,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1088.5448, -3101.3147, -38.9999),
heading = 90.5752,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 20000000,
reSell = 2000000,
maxStorage = 2000,
img = 'img/storages/storage_2.png',
position = {
coords = vector3(1048.2322, -3097.1882, -38.9999),
heading = 271.4607,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1049.0596, -3100.5078, -38.9999),
heading = 88.2212,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 35000000,
reSell = 3500000,
maxStorage = 3000,
img = 'img/storages/storage_3.png',
position = {
coords = vector3(992.3282, -3097.9185, -38.9959),
heading = 272.6369,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(994.5421, -3100.1375, -38.9959),
heading = 270.4116,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
}
},
[4] = {
coords = vector3(-38.7430, 6420.0669, 31.4904),
heading = 223.1843,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
blip = {
enable = true,
sprite = 50,
display = 4,
color = 0,
scale = 0.8,
shortRange = true,
name = 'Lagerhalle'
},
types = {
{
price = 10000000,
reSell = 1000000,
maxStorage = 1000,
img = 'img/storages/storage_1.png',
position = {
coords = vector3(1087.8090, -3099.3794, -38.9999),
heading = 267.8410,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1088.5448, -3101.3147, -38.9999),
heading = 90.5752,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 20000000,
reSell = 2000000,
maxStorage = 2000,
img = 'img/storages/storage_2.png',
position = {
coords = vector3(1048.2322, -3097.1882, -38.9999),
heading = 271.4607,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(1049.0596, -3100.5078, -38.9999),
heading = 88.2212,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
{
price = 35000000,
reSell = 3500000,
maxStorage = 3000,
img = 'img/storages/storage_3.png',
position = {
coords = vector3(992.3282, -3097.9185, -38.9959),
heading = 272.6369,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
},
lagerPosition = {
coords = vector3(994.5421, -3100.1375, -38.9959),
heading = 270.4116,
marker = {
type = 0,
drawDistance = 50.0,
scale = vector3(0.5, 0.5, 0.5),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true
},
}
},
}
},
}Client Open Source Files
if Config.Framework == 'automatic' then
if GetResourceState('es_extended') == 'started' then
Config.Framework = 'esx'
elseif GetResourceState('qb-core') == 'started' then
Config.Framework = 'qbcore'
else
Config.Framework = 'standalone'
end
end
function DrawHelpNotify(message)
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HelpNotify(message)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HelpNotify(message)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HelpNotify(message)
elseif GetResourceState('hex_1_hud') == 'started' then
exports['hex_1_hud']:HelpNotify(message)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HelpNotify(message)
else
SetTextComponentFormat('STRING')
AddTextComponentString(message)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
end
function Notify(title, message, notifyType, timeout)
if timeout == nil then timeout = 5000 end
if notifyType == nil then notifyType = 'info' end
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_1_hud') == 'started' then
exports['hex_1_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:Notify(title, message, notifyType, timeout)
else
print(('Notify: %s, %s, %s, %s'):format(title, message, notifyType, timeout))
end
end
function HideHud()
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HideHud(true)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HideHud(true)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HideHud(true)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HideHud(true)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:HideHud(true)
else
-- own implementation
end
end
function ShowHud()
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HideHud(false)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HideHud(false)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HideHud(false)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HideHud(false)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:HideHud(false)
else
-- own implementation
end
endServer Open Source Files
if Config.Framework == 'automatic' then
if GetResourceState('es_extended') == 'started' then
Config.Framework = 'esx'
elseif GetResourceState('qb-core') == 'started' then
Config.Framework = 'qbcore'
else
Config.Framework = 'standalone'
end
end