🎯Interaction
You can choose how players interact with the crafting system:
Key-based interaction (default key:
E
)Target-based interaction (using ox_target)
This behavior is controlled through the Config.Target
and Config.Interact
settings inside shared/config.lua
.
Config.Target = {
enabled = false, -- true = use ox_target, false = use key interaction
resource = 'ox_target', -- name of the target resource
icon = 'fas fa-sign-in-alt' -- target icon (FontAwesome)
}
When
enabled = true
, the script uses ox_target.The
resource
defines which target script is used (default:ox_target
).The
icon
sets the icon shown in the target interaction menu.
shared/config.lua
Config.Interact = {
key = 'E',
text = 'Press ~INPUT_CONTEXT~ to open crafting'
}
Used only when
Config.Target.enabled = false
.key
is the control key for interaction (default:E
).text
is the help notification shown to the player when near the crafting station.
Last updated