336 lines
11 KiB
Lua
336 lines
11 KiB
Lua
Config = {}
|
|
Locales = Locales or {}
|
|
Config.Framework = "esx" -- esx, oldesx, qb, oldqb
|
|
Config.Language = 'en' -- Check locales folder for available languages
|
|
Config.SQL = "oxmysql" -- oxmysql, ghmattimysql, mysql-async
|
|
Config.InteractionHandler = "drawtext" -- drawtext , qb-target , ox-target
|
|
Config.ServerLogo ="https://images.guns.lol/13ce84134d54a9db53288ce4761e9062fbebdad3/QwKzgg.png"
|
|
|
|
Config.MaxWeight = 25000 -- Max weight that player can carry 100 kg
|
|
Config.MaxSlots = 35 -- Max slots that player can carry
|
|
Config.GroundSlots = 50 -- Max slots ground
|
|
Config.ItemClothingSystem = false -- If you want to use clothing system, set this to true or false
|
|
Config.CashItem = true -- If you want to use cash item, set this to true or false
|
|
Config.DurabilitySystem = false -- If you want to use durability system, set this to true or false
|
|
Config.RemoveBrokenItems = false -- If you want to remove broken items, 'all' to remove all broken items (including weapons), 'items' to remove only items (no broken weapons will be removed), false to prevent removing broken items
|
|
Config.UseDiscordWebhooks = true -- If you want to use discord webhooks, set this to true or false
|
|
Config.DebugPrint = false -- If you want to see debug prints, set this to true or false
|
|
Config.RealisticObjectDrop = true -- If you want to use realistic object drop, set this to true or false
|
|
Config.ThrowablesSystem = false -- If you want to use throwables system, set this to true or false
|
|
Config.SlingWeapon = false -- If you want to use sling weapon system, set this to true or false
|
|
Config.DiePlayerRemoveHandsWeaponItem = false -- If you want to remove weapon item when player die, set this to true or false
|
|
Config.MaxBackPackItem = 1
|
|
Config.Cheaterlogs = true
|
|
Config.VersionChecker = true
|
|
Config.CraftSystem = false
|
|
|
|
Config.KeyBinds = {
|
|
Inventory = 'F2',
|
|
HotBar = 'TAB',
|
|
ThrowWeapon = 'E'
|
|
}
|
|
|
|
|
|
Config.NotDeleteItemWhenPlayerDie = {
|
|
["id_card"] = true,
|
|
["driver_license"] = true,
|
|
|
|
--- do not delete
|
|
["tshirt_1"] = true,
|
|
["torso_1"] = true,
|
|
["arms"] = true,
|
|
["pants_1"] = true,
|
|
["shoes_1"] = true,
|
|
["mask_1"] = true,
|
|
["bproof_1"] = true,
|
|
["chain_1"] = true,
|
|
["helmet_1"] = true,
|
|
["glasses_1"] = true,
|
|
["watches_1"] = true,
|
|
["bracelets_1"] = true,
|
|
["bags_1"] = true,
|
|
|
|
}
|
|
---for items that you don't want to be dragged during player rob
|
|
Config.NotRobItem = {
|
|
['id_card'] = true,
|
|
['lockpick'] = true
|
|
}
|
|
--- for jobs that you don't want to be robbed
|
|
Config.NotRobJob = {
|
|
['police'] = true,
|
|
['ambulance'] = true
|
|
}
|
|
|
|
|
|
|
|
Config.AnimPlayer = {
|
|
['openinventory'] = true,
|
|
['drop'] = true,
|
|
['giveitemplayer'] = true,
|
|
['opentrunk'] = true,
|
|
['closetrunk'] = true,
|
|
|
|
}
|
|
|
|
|
|
Config.Commands = {
|
|
['giveitem'] = "giveitem", -- giveitem command
|
|
['clearinv'] = "clearinv", -- clearinv command
|
|
['robplayer'] = "rob", -- rob player
|
|
['deathrob'] = "deathrob", -- deathrob command
|
|
['closeinv'] = "closeinv",
|
|
['openinv'] = "openinv",
|
|
['hotbar'] = "hotbar",
|
|
['openinventoryplayer'] = "openinventoryplayer",
|
|
['openstash'] = "openstash", -- openstash command /openstash stashid
|
|
['checkserveronlineitems'] = "checkserveronlineitems", --- only cmd
|
|
['checkserverofflineitems'] = "checkserverofflineitems", -- only cmd
|
|
['slingweapon'] = "slingweapon"
|
|
}
|
|
|
|
Config.ContextMenuData = {
|
|
{ name = 'use', label = 'Item benutzen', icon = 'useitemicon' },
|
|
{ name = 'give', label = 'Item weitergeben', icon = 'giveitemicon' },
|
|
{ name = 'drop', label = 'Item fallen lassen', icon = 'dropitemicon' },
|
|
}
|
|
Config.AdjustmentsData = {
|
|
{ name = 'soundfx', label = 'Sound FX', value = true },
|
|
{ name = 'hoverinfo', label = 'Hover-Info', value = true },
|
|
{ name = 'infoonbottom', label = 'Info unten', value = true },
|
|
{ name = 'lights', label = 'Beleuchtung', value = true },
|
|
}
|
|
|
|
Config.Category = {
|
|
{ name = 'all', label = 'Alle Items', icon = 'allitemsicon' },
|
|
{ name = 'weapon', label = 'Waffen', icon = 'weaponicon' },
|
|
{ name = 'food', label = 'Essen', icon = 'foodicon' },
|
|
{ name = 'craftable', label = 'Herstellbar', icon = 'craftableicon' },
|
|
{ name = 'clothes', label = 'Kleidung', icon = 'clothesicon' }
|
|
}
|
|
|
|
Config.Stashs = {
|
|
["policestash"] = {
|
|
label = "Police",
|
|
maxweight = 35000,
|
|
slot = 40,
|
|
job = {
|
|
["police"] = {
|
|
[1] = true,
|
|
[2] = true,
|
|
[3] = true
|
|
}
|
|
},
|
|
gang = {
|
|
["ballas"] = {
|
|
[1] = true,
|
|
[2] = true,
|
|
[3] = true
|
|
},
|
|
["vagos"] = {
|
|
[1] = true,
|
|
[2] = true,
|
|
[3] = true
|
|
}
|
|
},
|
|
coords = vector3(461.87, -982.59, 30.69)
|
|
},
|
|
["personelstash"] = {
|
|
label = "Personel",
|
|
maxweight = 35000,
|
|
slot = 40,
|
|
job = 'all',
|
|
coords = vector3(457.07, -988.58, 30.69)
|
|
},
|
|
}
|
|
|
|
Config.AddonVehicleTrunkOrGlovebox = {
|
|
['nkbuffalos'] = {
|
|
['trunk'] = {
|
|
maxweight = 5000,
|
|
slots = 5
|
|
},
|
|
['glovebox'] = {
|
|
maxweight = 10000,
|
|
slots = 4
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
Config.BackEngineVehicles = {
|
|
[`ninef`] = true,
|
|
[`adder`] = true,
|
|
[`vagner`] = true,
|
|
[`t20`] = true,
|
|
[`infernus`] = true,
|
|
[`zentorno`] = true,
|
|
[`reaper`] = true,
|
|
[`comet2`] = true,
|
|
[`comet3`] = true,
|
|
[`jester`] = true,
|
|
[`jester2`] = true,
|
|
[`cheetah`] = true,
|
|
[`cheetah2`] = true,
|
|
[`prototipo`] = true,
|
|
[`turismor`] = true,
|
|
[`pfister811`] = true,
|
|
[`ardent`] = true,
|
|
[`nero`] = true,
|
|
[`nero2`] = true,
|
|
[`tempesta`] = true,
|
|
[`vacca`] = true,
|
|
[`bullet`] = true,
|
|
[`osiris`] = true,
|
|
[`entityxf`] = true,
|
|
[`turismo2`] = true,
|
|
[`fmj`] = true,
|
|
[`re7b`] = true,
|
|
[`tyrus`] = true,
|
|
[`italigtb`] = true,
|
|
[`penetrator`] = true,
|
|
[`monroe`] = true,
|
|
[`ninef2`] = true,
|
|
[`stingergt`] = true,
|
|
[`surfer`] = true,
|
|
[`surfer2`] = true,
|
|
[`gp1`] = true,
|
|
[`autarch`] = true,
|
|
[`tyrant`] = true
|
|
}
|
|
Citizen.CreateThread(function()
|
|
function customToLower(str)
|
|
str = str:gsub("İ", "i")
|
|
str = str:gsub("I", "i")
|
|
return str:lower()
|
|
end
|
|
end)
|
|
|
|
Config.TrunkAndGloveboxWeight = {
|
|
["trunk"] = {
|
|
[0] = { -- Compacts (Kleinwagen: Panto)
|
|
maxweight = 35000, -- 35kg (Etwas mehr als der Spieler)
|
|
slots = 20
|
|
},
|
|
[1] = { -- Sedans (Limousinen: Tailgater)
|
|
maxweight = 50000, -- 50kg (Doppelt so viel wie der Spieler)
|
|
slots = 30
|
|
},
|
|
[2] = { -- SUVs (Granger)
|
|
maxweight = 75000, -- 75kg
|
|
slots = 40
|
|
},
|
|
[3] = { -- Coupes
|
|
maxweight = 45000,
|
|
slots = 30
|
|
},
|
|
[4] = { -- Muscle (Muscle-Cars)
|
|
maxweight = 40000,
|
|
slots = 25
|
|
},
|
|
[5] = { -- Sports Classics
|
|
maxweight = 30000,
|
|
slots = 20
|
|
},
|
|
[6] = { -- Sports (Sportwagen)
|
|
maxweight = 25000, -- 25kg (Genauso viel wie der Spieler)
|
|
slots = 20
|
|
},
|
|
[7] = { -- Super (Supersportler)
|
|
maxweight = 20000, -- 20kg (Wenig Platz wegen Motor hinten)
|
|
slots = 15
|
|
},
|
|
[8] = { -- Motorcycles (Motorräder)
|
|
maxweight = 10000, -- 10kg
|
|
slots = 10
|
|
},
|
|
[9] = { -- Off-Road (und dein LKW-Fallback)
|
|
maxweight = 150000, -- 150kg (Deutlich mehr für Farming/Jobs)
|
|
slots = 60
|
|
},
|
|
[10] = { -- Industrial (Müllabfuhr etc.)
|
|
maxweight = 250000, -- 250kg
|
|
slots = 80
|
|
},
|
|
[11] = { -- Utility (Caddy/Arbeitsautos)
|
|
maxweight = 60000,
|
|
slots = 35
|
|
},
|
|
[12] = { -- Vans (Lieferwagen: Burrito)
|
|
maxweight = 150000, -- 150kg
|
|
slots = 60
|
|
},
|
|
[13] = { -- Cycles (Fahrräder)
|
|
maxweight = 0,
|
|
slots = 0
|
|
},
|
|
[14] = { -- Boats (Boote)
|
|
maxweight = 100000,
|
|
slots = 50
|
|
},
|
|
[15] = { -- Helicopters
|
|
maxweight = 80000,
|
|
slots = 40
|
|
},
|
|
[16] = { -- Planes
|
|
maxweight = 120000,
|
|
slots = 50
|
|
},
|
|
[17] = { -- Service (Taxi/Bus)
|
|
maxweight = 60000,
|
|
slots = 35
|
|
},
|
|
[18] = { -- Emergency (Polizei/RTW)
|
|
maxweight = 80000, -- Platz für Equipment
|
|
slots = 50
|
|
},
|
|
[19] = { -- Military
|
|
maxweight = 120000,
|
|
slots = 60
|
|
},
|
|
[20] = { -- Commercial (Große LKWs: Hauler)
|
|
maxweight = 400000, -- 400kg (Das Maximum für Farming-Balance) Mule
|
|
slots = 100
|
|
},
|
|
[21] = { -- Trains
|
|
maxweight = 1000000,
|
|
slots = 200
|
|
}
|
|
},
|
|
|
|
["glovebox"] = {
|
|
[0] = { maxweight = 5000, slots = 5 }, -- Compacts
|
|
[1] = { maxweight = 7000, slots = 6 }, -- Sedans
|
|
[2] = { maxweight = 10000, slots = 8 }, -- SUVs (Größeres Fach)
|
|
[3] = { maxweight = 7000, slots = 6 }, -- Coupes
|
|
[4] = { maxweight = 6000, slots = 5 }, -- Muscle
|
|
[5] = { maxweight = 4000, slots = 4 }, -- Sports Classics
|
|
[6] = { maxweight = 4000, slots = 4 }, -- Sports
|
|
[7] = { maxweight = 3000, slots = 3 }, -- Super (Sehr klein)
|
|
[8] = { maxweight = 2000, slots = 2 }, -- Motorcycles (Sitzbankfach)
|
|
[9] = { maxweight = 10000, slots = 10 }, -- Off-Road / Fallback
|
|
[10] = { maxweight = 10000, slots = 10 }, -- Industrial
|
|
[11] = { maxweight = 8000, slots = 8 }, -- Utility
|
|
[12] = { maxweight = 10000, slots = 10 }, -- Vans
|
|
[13] = { maxweight = 1000, slots = 2 }, -- Cycles (Satteltasche)
|
|
[14] = { maxweight = 15000, slots = 10 }, -- Boats
|
|
[15] = { maxweight = 15000, slots = 10 }, -- Helicopters
|
|
[16] = { maxweight = 15000, slots = 10 }, -- Planes
|
|
[17] = { maxweight = 10000, slots = 8 }, -- Service
|
|
[18] = { maxweight = 12000, slots = 10 }, -- Emergency (Polizei-Equipment)
|
|
[19] = { maxweight = 12000, slots = 10 }, -- Military
|
|
[20] = { maxweight = 15000, slots = 12 }, -- Commercial (Große LKW-Kabinen)
|
|
[21] = { maxweight = 20000, slots = 15 } -- Trains
|
|
}
|
|
|
|
|
|
}
|
|
|
|
Config.Notification = function(message, type, isServer, src)
|
|
if isServer then
|
|
TriggerClientEvent("hex_4_hud:Notify", src, nil, message, type or "info", 3000)
|
|
else
|
|
exports['hex_4_hud']:Notify(nil, message, type or "info", 3000)
|
|
end
|
|
end |