Configuration
Updated May 22, 2026
Alle Einstellungen können in der config.lua Datei konfiguriert werden.
Allgemeine Einstellungen
Config.Debug = false
Aktiviert Debug-Ausgaben (true/false)
Config.Language = 'de'
Legt die Sprache fest (de oder en)
Config.InventorySystem = 'ox'
Aktuell unterstützt:
- esx
- qbcore
- ox
- core
- quasar
Config.InteractionType = 'ox_target'
Aktuell unterstützt:
- ox_target
- qb-target
- 3dtext
- esx_helpnotify
- hex_4_hud
Config.SoundVolume = 0.3
SoundVolume – Lautstärke von Sounds
Flaschen Einstellungen
Config.BottleItem = 'emptybottle'
Config.PricePerBottle = 1.0
Config.SecondsPerBottle = 1.0
Config.DelayChance = 0.2
Config.ExtraDelaySeconds = 3.0
- BottleItem – Item-Name der Pfandflasche
- PricePerBottle – Geld pro Flasche
- SecondsPerBottle – Zeit pro abgegebener Flasche
- DelayChance – Chance auf zusätzliche Verzögerung (z. B. 0.2 = 20%)
- ExtraDelaySeconds – Extra Zeit bei Verzögerung
Target Einstellungen
Config.TargetModel = 'uf_pfandautomat'
Config.TargetDistance = 1.5
- TargetModel – Objekt, das interaktiv ist
- TargetDistance – Distanz für Interaktion
Prop Position
Config.PropPositions = {
vector4(21.210,-1349.831,28.324,-179.8),
Hier werden die Automaten in der Welt platziert.
Format:
vector4(x, y, z, heading)
Notifications
Config.Notify = {
client = function(title, message, notifyType, duration)
TriggerEvent('ox_lib:notify', {
title = title,
description = message,
type = notifyType,
duration = duration
})
end,
server = function(target, title, message, notifyType, duration)
TriggerClientEvent('ox_lib:notify', target, {
title = title,
description = message,
type = notifyType,
duration = duration
})
end
}
- Client- & Server-seitige Notifications
- Standardmäßig über ox_lib
- kompatibilitätsliste
Kann leicht durch anderes Notify-System ersetzt werden.
Progress Bar
Config.ProgressBar = function(duration, label)
lib.progressBar({
duration = duration,
label = label,
useWhileDead = false,
canCancel = false,
disable = {
move = true,
car = true,
combat = true,
},
anim = {
dict = 'mp_common',
clip = 'givetake1_a',
},
prop = {
model = `prop_ld_flow_bottle`,
bone = 60309,
pos = vec3(0.1, 0.0, 0.0),
rot = vec3(0.0, 90.0, 90.0)
}
})
end
Während der Nutzung:
- Spieler wird blockiert (Movement, Combat, etc.)
- Animation wird abgespielt
- Flasche wird in der Hand angezeigt
- kompatibilitätsliste