-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
231 lines (220 loc) · 9.19 KB
/
config.lua
File metadata and controls
231 lines (220 loc) · 9.19 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
Config = {}
-- Debug Settings (Enable for troubleshooting)
Config.Debug = true -- Set to true to see debug messages in console
Config.LogLevel = 'debug' -- 'debug', 'info', 'warn', 'error'
-- Framework Settings
Config.Framework = 'esx' -- 'esx', 'qbcore', 'standalone'
Config.UseDatabase = true -- Set to false if not using MySQL
Config.Currency = 'cash' -- 'cash', 'bank', 'money'
-- Job Settings
Config.Jobs = {
retail = {
name = 'Retail Worker',
maxPlayers = 10,
paycheck = {
base = 50,
multiplier = 1.2 -- Increases with rank
}
},
fastfood = {
name = 'Fast Food Worker',
maxPlayers = 8,
paycheck = {
base = 45,
multiplier = 1.15
}
}
}
-- Corporate Ladder System
Config.Ranks = {
[1] = { name = 'Trainee', salary = 100, required_exp = 0, perks = {} },
[2] = { name = 'Employee', salary = 150, required_exp = 500, perks = {'discount_5'} },
[3] = { name = 'Senior Employee', salary = 200, required_exp = 1500, perks = {'discount_10', 'flexible_schedule'} },
[4] = { name = 'Team Leader', salary = 300, required_exp = 3000, perks = {'discount_15', 'manage_inventory'} },
[5] = { name = 'Supervisor', salary = 450, required_exp = 5000, perks = {'discount_20', 'hire_fire', 'set_prices'} },
[6] = { name = 'Assistant Manager', salary = 600, required_exp = 8000, perks = {'discount_25', 'full_management'} },
[7] = { name = 'Store Manager', salary = 800, required_exp = 12000, perks = {'discount_30', 'owner_privileges'} },
[8] = { name = 'District Manager', salary = 1200, required_exp = 20000, perks = {'discount_40', 'multi_store_access'} },
[9] = { name = 'Regional Manager', salary = 1800, required_exp = 35000, perks = {'discount_50', 'executive_perks'} },
[10] = { name = 'CEO', salary = 3000, required_exp = 60000, perks = {'unlimited_perks', 'company_car'} }
}
-- New Player Experience System
Config.NewPlayerBonus = {
enabled = true,
startingExperience = 100, -- Start with some experience
welcomeMessage = "Welcome to your first retail job! You've been given basic training.",
initialTasks = {
{name = "Clock In Tutorial", experience = 25, description = "Learn how to clock in and out"},
{name = "Customer Service Basics", experience = 50, description = "Complete your first customer transaction"},
{name = "Inventory Management", experience = 25, description = "Learn how to restock items"}
}
}
-- Interaction System
Config.Interactions = {
distances = {
clockInOut = 4.0, -- Increased distance for clock in/out
workStation = 3.0, -- Increased distance for work stations
customer = 4.0, -- Distance for customer interactions
management = 2.0 -- Distance for management tasks
},
priorities = {
clockInOut = 10, -- Highest priority
workStation = 8, -- Medium-high priority
customer = 6, -- Medium priority
management = 4 -- Lower priority
},
cooldown = 100 -- Reduced cooldown to 0.1 seconds (was 500ms)
}
-- Store Locations with optimized interaction positioning
-- NOTE: All interaction points have been positioned to avoid walls and obstacles
-- clockInOut: Positioned at store entrances for easy access
-- cashier: Positioned at service counters
-- inventory: Positioned in storage/back areas
-- office: Positioned in accessible office spaces
-- kitchen: Positioned in cooking areas (fast food only)
Config.Stores = {
-- Retail Stores
{
id = 1,
type = 'retail',
name = 'Downtown General Store',
coords = vector3(25.7, -1347.3, 29.49), -- Store center/blip location
blip = { sprite = 52, color = 2, scale = 0.8 },
npc = { model = 'a_m_m_business_01', coords = vector4(24.5, -1347.8, 29.49, 270.0) },
clockInOut = vector3(28.0, -1339.0, 29.49), -- OUTSIDE: Near main entrance
products = {
{name = 'Sandwich', price = 5, stock = 50},
{name = 'Water', price = 2, stock = 100},
{name = 'Energy Drink', price = 8, stock = 30},
{name = 'Cigarettes', price = 15, stock = 20}
},
workStations = {
cashier = vector3(25.7, -1346.5, 29.49), -- At service counter
inventory = vector3(28.5, -1349.0, 29.49), -- In storage area
office = vector3(30.0, -1342.0, 29.49) -- In manager's office area
}
},
{
id = 2,
type = 'retail',
name = 'Sandy Shores Market',
coords = vector3(1961.3, 3740.0, 32.34), -- Store center/blip location
blip = { sprite = 52, color = 2, scale = 0.8 },
npc = { model = 'a_m_m_business_01', coords = vector4(1960.8, 3740.5, 32.34, 90.0) },
clockInOut = vector3(1963.5, 3742.5, 32.34), -- OUTSIDE: Near main entrance
products = {
{name = 'Sandwich', price = 6, stock = 30},
{name = 'Water', price = 3, stock = 80},
{name = 'Snacks', price = 4, stock = 40}
},
workStations = {
cashier = vector3(1961.3, 3740.5, 32.34), -- At service counter
inventory = vector3(1959.0, 3738.0, 32.34), -- In storage area
office = vector3(1964.0, 3743.0, 32.34) -- In back office
}
},
-- Fast Food Stores
{
id = 3,
type = 'fastfood',
name = 'Burger Shot Downtown',
coords = vector3(-1194.26, -884.88, 13.98), -- Store center/blip location
blip = { sprite = 106, color = 5, scale = 0.8 },
npc = { model = 'a_f_y_business_02', coords = vector4(-1193.5, -885.2, 13.98, 35.0) },
clockInOut = vector3(-1195.5, -889.0, 13.98), -- OUTSIDE: Near main entrance
products = {
{name = 'Burger', price = 12, stock = 40},
{name = 'Fries', price = 6, stock = 60},
{name = 'Soda', price = 4, stock = 80},
{name = 'Milkshake', price = 8, stock = 30}
},
workStations = {
cashier = vector3(-1194.0, -884.5, 13.98), -- At front counter
kitchen = vector3(-1196.5, -887.5, 13.98), -- In kitchen area
drive_thru = vector3(-1192.0, -883.0, 13.98), -- At drive-thru window
office = vector3(-1197.0, -886.0, 13.98) -- In back office
}
},
{
id = 4,
type = 'fastfood',
name = 'Cluckin Bell Paleto',
coords = vector3(-142.77, 6356.09, 31.49), -- Store center/blip location
blip = { sprite = 89, color = 17, scale = 0.8 },
npc = { model = 'a_f_y_business_02', coords = vector4(-142.5, 6356.5, 31.49, 225.0) },
clockInOut = vector3(-145.0, 6353.0, 31.49), -- OUTSIDE: Near main entrance
products = {
{name = 'Chicken Burger', price = 14, stock = 35},
{name = 'Wings', price = 10, stock = 45},
{name = 'Soda', price = 4, stock = 70}
},
workStations = {
cashier = vector3(-142.5, 6356.5, 31.49), -- At service counter
kitchen = vector3(-144.5, 6358.5, 31.49), -- In kitchen area
office = vector3(-140.5, 6354.0, 31.49) -- In accessible office
}
}
}
-- NPC Customer Settings
Config.NPCCustomers = {
enabled = true,
spawnRadius = 50.0,
maxCustomers = 5,
spawnChance = 15, -- Percentage chance every 30 seconds
models = {
'a_m_m_bevhills_01', 'a_f_y_bevhills_01', 'a_m_y_business_01',
'a_f_m_business_02', 'a_m_m_farmer_01', 'a_f_y_tourist_01',
'a_m_y_downtown_01', 'a_f_m_downtown_01'
},
purchaseChance = {
single_item = 40,
multiple_items = 35,
no_purchase = 25
},
waitTimes = {
min = 5000, -- 5 seconds
max = 15000 -- 15 seconds
}
}
-- Experience System
Config.Experience = {
serving_customer = 10,
restocking = 5,
cleaning = 3,
training_new_employee = 25,
handling_complaint = 15,
perfect_service = 20,
overtime_bonus = 50,
monthly_bonus = 200,
first_clock_in = 50, -- Bonus for first time clocking in
tutorial_completion = 100 -- Bonus for completing tutorial
}
-- Optimization Settings
Config.Optimization = {
npcCleanupTime = 300000, -- 5 minutes
maxRenderDistance = 100.0,
updateInterval = 1000, -- 1 second
useStreamedTextures = true,
enableLOD = true
}
-- UI Settings with Command-Based Interaction System
Config.UI = {
notifications = {
position = 'top-right',
duration = 5000
},
-- New command-based interaction system (no keybinds required)
interactionSystem = {
type = 'proximity_commands', -- proximity_commands, keybinds, mixed
proximityDistance = 4.0, -- Distance to show interaction prompts
autoDetection = true, -- Automatically detect when near stores
commandBased = true -- Use commands instead of keybinds
},
commands = {
main_interaction = "/retailjob", -- Primary interaction command
quick_clockin = "/clockin", -- Quick clock in command
quick_clockout = "/clockout", -- Quick clock out command
job_menu = "/retailmenu", -- Job dashboard command
help = "/retailhelp" -- Help command
}
}