πSee the Config
See all configurable files
CONFIG.LUA
Config = {}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Language = 'en' -- default: en/de || more options in language.lua
Config.Framework = 'esx' -- esx or old-esx (esx = ESX LEGACY)
Config.Debug = false -- enable debug mode true/false (will print debug messages in console)
Config.ImgPath = 'your-inventory-image/html/img/items/' -- path to images (default: nkn-inventarasd\html\img)
Config.CheckInterval = 2500 -- crafting database timer check interval (default: 2500 in ms) (lower = faster but more performance usage, higher = slower but less performance usage)
Config.RenderDistance = 30.0 -- render distance for crafting tables marker & npc (default: 30.0) (lower = less performance usage, higher = more performance usage FOR client)
Config.InteractDistance = 2.0 -- interact distance for crafting tables (default: 2.0)
Config.allowMultipleCrafting = true -- allow multiple crafting on other or same crafting table at the same time (true/false)
Config.allowOfflineProgress = true -- allow crafting while offline (true/false) (if false, player must be online to progress crafting duration)
Config.Admins = { -- this role will be able to use commands from Config.Commands
"superadmin",
"admin",
}
Config.Commands = {
clearDatabase = 'clearDatabase', -- command to clear crafting database (usage: /clearDatabase [id or identifier])
clearDatabaseAll = 'clearDatabaseAll', -- command to clear crafting database for all players (usage: /clearDatabaseAll) WARNING: THIS WILL CLEAR DATABASE OF CRAFTING FOR ALL PLAYERS (USE ONLY IF NEEDED)
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Coords = {
["Table 1"] = { -- dont use same name twice (copy paste and change values to make more spots)
coords = vec3(-83.93, -835.70, 39.0), -- coords where DAILY Rewards Spot + the marker and blip will be
allowedJob = {"all"}, -- allowed jobs to use this spot (all = all jobs)
craftings = {
["Item 1"] = { -- dont use same name twice (copy paste and change values to make more items)
output = 'phone', -- item name
label = 'Phone', -- item label
amount = 1, -- item amount
duration = 1, -- crafting duration in ms
resources = { -- resources needed to craft item
{item = 'water', label = 'Water', amount = 1},
{item = 'bread', label = 'Bread', amount = 1},
},
},
["Item 2"] = { -- dont use same name twice (copy paste and change values to make more items)
output = 'bread', -- item name
label = 'Bread', -- item label
amount = 1, -- item amount
duration = 1, -- crafting duration in ms
resources = { -- resources needed to craft item
{item = 'gold', label = 'Gold', amount = 15},
{item = 'diamond', label = 'Diamond', amount = 3},
},
},
},
marker = { -- marker settings
enable = true, -- enable marker true/false
type = 1, -- marker type , check https://docs.fivem.net/docs/game-references/markers/ for more info about marker types
size = { -- marker size
x = 1.0, -- x = width
y = 1.0, -- y = length
z = 1.0, -- z = height
},
color = { -- marker color, color picker: https://www.w3schools.com/colors/colors_picker.asp
r = 255, -- r = red
g = 204, -- g = green
b = 0, -- b = blue
a = 100, -- a = alpha (transparency)
},
},
blip = { -- blip settings
enable = true, -- enable blip true/false
sprite = 781, -- blip sprite , check https://docs.fivem.net/docs/game-references/blips/ for more info about blip sprites
color = 5, -- blip color , check https://docs.fivem.net/docs/game-references/blips/ for more info about blip colors
scale = 1.0, -- blip scale / size
name = 'CRAFTING TABLE 1', -- blip name (will be shown on map)
},
npc = { -- npc settings
enable = true, -- enable npc true/false
model = 'a_m_y_skater_01', -- npc model , check https://wiki.rage.mp/index.php?title=Peds for more info about peds
coords = vec3(-83.93, -835.70, 39.6), -- npc coords
heading = 150.23, -- npc heading
},
},
}
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- Change trigger events to your own framework or script (if you dont know what you are doing, dont touch this)
function clientNotify(message)
TriggerEvent("esx:showNotification", message)
end
function serverNotify(source, message)
TriggerClientEvent("esx:showNotification", source, message)
end
function debug(msg)
if Config.Debug then
print(('^3[NKN-CRAFTINGTABLE]^0 %s'):format(msg))
end
end
Config.Triggers = {
playerLoaded = 'esx:playerLoaded', -- player loaded event
setJob = 'esx:setJob', -- set job event
}LANGUAGE.LUA
discord-config.lua
Last updated