Interaction Settings
This page covers how players interact with crafting stations - either through key press or target system (ox_target,qb-target,).
π§ Configuration Options
All interaction settings are located in shared/config.lua under the INTERACTION SETTINGS section.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- INTERACTION SETTINGS
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Target = {
enabled = false,
resource = 'ox_target',
icon = 'fas fa-sign-in-alt'
}
Config.Interact = {
key = 'E',
text = 'Press ~INPUT_CONTEXT~ to open crafting'
}π Setting Descriptions
Target System Configuration
Config.Target = {
enabled = false,
resource = 'ox_target',
icon = 'fas fa-sign-in-alt'
}Purpose: Enable interaction through target systems (third-eye, eye-target) instead of key press.
Options:
enabled
Boolean
Enable/disable target system
false
resource
String
Target resource name
'ox_target'
icon
String
Font Awesome icon class
'fas fa-sign-in-alt'
Key Press Configuration
Config.Interact = {
key = 'E',
text = 'Press ~INPUT_CONTEXT~ to open crafting'
}Purpose: Configure key-based interaction when target system is disabled.
Options:
key
String
Key to press for interaction
'E'
text
String
Help text shown on screen
'Press ~INPUT_CONTEXT~ to open crafting'
π§ Configuration Examples
Example: Using ox_target
Configuration:
Config.Target = {
enabled = true,
resource = 'ox_target',
icon = 'fas fa-hammer'
}Requirements:
Install ox_target
Add to server.cfg: ensure ox_target
Ensure ox_target starts before koja-crafting
Restart koja-crafting
Result: Players can aim at tables and see "LABEL" option with ICON.
Example: Traditional Key Press
Configuration:
Config.Target = {
enabled = false, -- Disable target
}
Config.Interact = {
key = 'E',
text = 'Press ~INPUT_CONTEXT~ to open crafting'
}Result: Simple help text appears when near station, press E to open.
π¨ Font Awesome Icons
Popular Icons for Crafting
'fas fa-hammer'
π¨
Weapon crafting
'fas fa-toolbox'
π§°
Tool crafting
'fas fa-wrench'
π§
Vehicle crafting
'fas fa-cog'
βοΈ
Mechanical crafting
'fas fa-flask'
π§ͺ
Chemical/drug crafting
'fas fa-mortar-pestle'
πΊ
Medical crafting
'fas fa-tshirt'
π
Clothing crafting
'fas fa-utensils'
π΄
Food crafting
'fas fa-box'
π¦
General crafting
'fas fa-industry'
π
Industrial crafting
Icon Syntax
icon = 'fas fa-hammer'
-- β ββ Icon name
-- ββ Icon style (fas = solid, far = regular, fab = brands)Find more icons: https://fontawesome.com/icons
π― Help Text Formatting
Text Formatting Options
The help text supports GTA V formatting codes:
-- Basic text
text = 'Press ~INPUT_CONTEXT~ to craft'
-- With color
text = '~g~Press ~INPUT_CONTEXT~ to craft~s~' -- Green text
-- Multiple controls
text = 'Press ~INPUT_CONTEXT~ to craft or ~INPUT_CANCEL~ to exit'
-- Custom styling
text = '~b~[CRAFTING]~s~ Press ~INPUT_CONTEXT~ to open'Color Codes
~r~
Red
~r~Warning~s~
~g~
Green
~g~Available~s~
~b~
Blue
~b~Info~s~
~y~
Yellow
~y~Caution~s~
~p~
Purple
~p~Special~s~
~o~
Orange
~o~Alert~s~
~s~
White (reset)
~s~Normal
Control Input Codes
~INPUT_CONTEXT~
E key
"E"
~INPUT_CANCEL~
Backspace
"Backspace"
~INPUT_ENTER~
Enter
"Enter"
~INPUT_FRONTEND_ACCEPT~
Space/Enter
"Space"
Example configurations are shown above.
π Related Documentation
For crafting station setup, see Crafting Stations
For queue configuration, see Crafting Queue Settings
For general setup, see General Settings
For installation, see Installation
π Useful Resources
ox_target: https://github.com/overextended/ox_target
Font Awesome Icons: https://fontawesome.com/icons
GTA V Control Codes: https://docs.fivem.net/docs/game-references/controls/
Last updated