Repository navigation
Expand file tree
/
Copy pathconfig.lua
More file actions
196 lines (165 loc) · 5.16 KB
/
Copy pathconfig.lua
File metadata and controls
196 lines (165 loc) · 5.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
Config = {}
--[[
FRAMEWORK & INVENTORY
Automatically detect your server framework and inventory,
or select an integration manually.
]]
Config.Framework = 'auto' -- auto, standalone, esx, qbcore, qbox, ox
Config.Inventory = 'auto' -- auto, framework, ox_inventory, qb-inventory, qs-inventory, codem-inventory
Config.Locale = 'en' -- Language used by the resource.
-- Groups allowed to access administrative features.
-- Make sure these match your framework's permission groups.
Config.AdminGroups = {
'admin',
'owner',
'god',
'best'
}
--[[
INTERACTION SETTINGS
Configure how players discover and interact with targets.
]]
Config.Interaction = {
-- Default interaction mode: focus, classic or dui.
-- Focus - Automatically shows the target options when looking at an interaction
-- Classic - Requires holding the targetKey (Default: ALT) to show the interaction options.
-- DUI - Automatically shows the target options using a world anchored UI
mode = 'focus',
-- Allow players to override the default mode
-- and save their preference through the theme editor.
allowPlayerModeSwitch = false,
-- Override interaction modes for specific resources.
-- Example: ['resource_name'] = 'classic'
resourceModes = {},
-- Default key bindings (FiveM control names).
targetKey = 'LMENU', -- Left Alt
confirmKey = 'E',
-- Enable toggle mode instead of holding the target key.
toggle = false,
-- Maximum distance for displaying nearby targets (meters).
revealDistance = 8.0,
-- Distance at which target options expand (meters).
expandDistance = 2.5,
-- Timeout for asynchronous checks (milliseconds).
-- 10000 = 10 seconds.
asyncTimeout = 10000,
-- Hide external targets while the player is inside a vehicle.
hideExternalEntitiesInVehicle = true,
-- Disable interaction while dead or handcuffed.
suspendWhenDead = true,
suspendWhenCuffed = true,
-- How unavailable interaction options are handled:
-- 'show': Display disabled options and their reason.
-- 'hide': Completely hide unavailable options.
unavailable = 'show',
}
--[[
VISUAL EFFECTS
Configure visual feedback for nearby targets.
]]
Config.Visual = {
indicator = true, -- Display target indicators.
highlight = true, -- Highlight targeted entities.
outline = false, -- Draw an outline around targeted entities.
}
--[[
THEME CUSTOMIZATION
Control which appearance settings players can customize.
]]
Config.Theme = {
-- Allow players to customize their interaction UI.
allowPlayerCustomization = true,
-- Command used to open the theme editor (without /).
commandName = 'targetheme',
-- Fonts available in the theme editor.
-- Custom fonts must be included in the resource's UI assets.
-- After adding custom fonts make sure to rebuild the UI.
fonts = {
{
id = 'montserrat',
label = 'Montserrat',
family = 'Montserrat',
file = 'Montserrat-Variable.woff2',
weight = '100 900'
},
{
id = 'system',
label = 'System',
family = 'Segoe UI'
},
{
id = 'condensed',
label = 'Condensed',
family = 'Arial Narrow'
},
},
-- Player customization permissions.
-- true = Players can modify this setting.
-- false = Players cannot modify this setting.
allowedPlayerFields = {
preset = true,
accent = true,
surface = true,
text = true,
mutedText = true,
opacity = true,
radius = true,
scale = true,
position = true,
font = true,
animations = true,
indicator = true,
highlight = true,
blur = true,
width = true,
textSize = true,
indicatorSize = true,
indicatorStyle = true,
cursorHint = true,
highContrast = true,
colorVision = true,
fade = true,
sound = true,
soundVolume = true,
categoryColors = true,
},
--[[
DEFAULT THEME
Initial appearance for players without saved preferences.
Individual customization may override these values.
]]
default = {
-- Preset and colors (HEX).
preset = 'precision',
accent = '#7c5cff',
surface = '#111217',
text = '#f7f7fb',
mutedText = '#adb0bf',
-- Layout and appearance.
opacity = 0.92,
radius = 10,
scale = 1.0,
position = 'center',
font = 'montserrat',
-- Visual effects.
animations = true,
indicator = true,
highlight = true,
blur = 12,
-- Dimensions and text.
width = 280,
textSize = 13,
indicatorSize = 13,
indicatorStyle = 'ring',
-- Accessibility and interaction feedback.
cursorHint = 'first',
highContrast = false,
colorVision = 'normal',
fade = false,
-- Audio feedback.
sound = false,
soundVolume = 0.25,
-- Custom category colors.
categoryColors = {},
}
}