HexscriptsClassicWorkstation
Configurations
Here you will get all configurations & open source files that are included within this script.
Open Source Files
Config = {}
Config.Debug = false
Config.Locale = 'de'
Config.Framework = 'ESX' -- currently only esx & qb support but you can easily add your framework via framework.lua
Config.Dimension = 0 -- false to disable the dimension check
Config.CanCarryCheck = true -- Check if player has enough space in inventory to take items
Config.Workstations = {
['Test Station'] = { -- Station name
coords = vector3(-1099.8252, -2631.6282, 20.0182), -- Coords
message = 'Press ~INPUT_PICKUP~ to access the Weed Station',
input = 'water', -- Input item name
output = 'phone', -- Output item name
time = 5, -- Seconds
stationLimit = 8000, -- Limit to put in the station
multi = 5, -- Multi for inserted items
outputMulti = 1, -- Multi for output items
text = {
enabled = true,
size = 1.5,
font = 1,
drawDistance = 10.0
},
blip = {
id = 93,
color = 7,
scale = 0.8,
shortrange = true,
name = 'Test',
enabled = true,
},
marker = {
type = 1,
scale = vector3(4.0, 4.0, 1.0),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true,
drawDistance = 50.0
}
},
['Pistol Station'] = {
coords = vector3(-817.5428, -2677.6951, 13.8104), -- Coords
message = 'Press ~INPUT_PICKUP~ to access the Pistol Station',
input = 'phone', -- Input item name
output = 'bread', -- Output item name
time = 10, -- Seconds
stationLimit = 10, -- Limit to put in the station
job = 'none', -- If job required job name here
jobGrade = 0, -- If you use job
multi = 1, -- Multi for inserted items
outputMulti = 20, -- Multi for output items [DOESNT WORK FOR WEAPON OUTPUTS]
text = {
enabled = true,
size = 1.5,
font = 1,
drawDistance = 10.0
},
blip = {
id = 93,
color = 7,
scale = 0.8,
shortrange = true,
name = 'Pistol Craft',
enabled = false,
},
marker = {
type = 1,
scale = vector3(4.0, 4.0, 1.0),
color = {
red = 255,
green = 46,
blue = 58,
alpha = 100
},
moveUpAndDown = false,
rotate = true,
drawDistance = 50.0
},
canTime = { --24 Hour Format
from = 12,
to = 23
}
}
}
Config.Locales = {
['de'] = {
['stationDone'] = 'Workstation: %s Wartet auf Abholung!',
['stationOverLimit'] = 'So viel passt hier nicht rein',
['stationStarted'] = 'Workstation: %s Startet!',
['stationYouNeedMore'] = 'So viel hast du nicht',
['stationGotItems'] = 'Erfolgreich %s Items Entzogen',
['stationAddItems'] = 'Erfolgreich %s %s Nachgelegt',
['stationGotAllItems'] = 'Erfolgreich Alle Items Entzogen',
['stationNotReady'] = 'Du kannst noch nichts entnehmen',
['stationNoStation'] = 'Es läuft keine Workstation',
['stationStopped'] = 'Workstation: %s Erfolgreich beendet!',
['stationNoWeight'] = 'Du hast nicht genug Inventar platz!',
['stationHasWeapon'] = 'Du hast diese Waffe bereits!',
['cannotCarry'] = 'Dein Rucksack hat nicht genügend Platz!',
['webhook_date'] = "Am %s um %s",
['webhook_insert'] = 'Der Spieler %s hat %sx %s in die Workstation %s gelegt',
['webhook_remove'] = 'Der Spieler %s hat %sx %s aus der Workstation %s geholt',
['webhook_stop'] = 'Der Spieler %s hat vorzeitig die Workstation %s gestoppt und bekommt %sx %s und %sx %s',
['invalidTime'] = 'Geht nicht um diese Uhrzeit!',
['stationAlready'] = 'Es läuft bereits eine andere Workstation!'
},
['en'] = {
['stationDone'] = 'Workstation: %s waiting for pickup!',
['stationOverLimit'] = "You can't fit that much here!",
['stationStarted'] = 'Workstation: %s starts!',
['stationYouNeedMore'] = 'You do not have that much',
['stationGotItems'] = 'Successfully %s items withdrawn',
['stationAddItems'] = 'Successfully %s %s followed up',
['stationGotAllItems'] = 'Successful all items withdrawn',
['stationNotReady'] = 'You can not take anything yet',
['stationNoStation'] = 'There is no workstation running',
['stationStopped'] = 'Workstation: %s Successfully finished!',
['stationHasWeapon'] = 'You already have this Weapon!',
['cannotCarry'] = 'Your backpack does not have enough space!',
['webhook_date'] = "On %s at %s",
['invalidTime'] = 'Doesnt work at this time!',
['stationAlready'] = 'There is already a workstation running!'
}
}
function DrawHelpNotify(message)
SetTextComponentFormat('STRING')
AddTextComponentString(message)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
function Notify(title, message, type, timeout)
TriggerEvent('hex_hud:notify', title, message, type, timeout)
end