Repository navigation
Expand file tree
/
Copy pathconfig.lua
More file actions
353 lines (328 loc) · 12.2 KB
/
Copy pathconfig.lua
File metadata and controls
353 lines (328 loc) · 12.2 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
Config = {}
-- ═══════════════════════════════════════════════
-- SNOWMAN TP MENU — CONFIG
-- ═══════════════════════════════════════════════
-- ─────────────────────────────────────────────
-- GENERAL
-- ─────────────────────────────────────────────
Config.OpenKey = 'F5' -- Key to open menu
Config.Command = 'tpmenu' -- Chat command (no slash)
Config.AdminGroup = 'admin' -- ESX group = admin
Config.VipGroup = 'vip' -- ESX group = vip
Config.TeleportDelay = 750 -- MS delay before TP fires
Config.FreezeOnTP = true -- Freeze player during TP
Config.BlackScreenTP = true -- Black screen on TP
Config.LogTeleports = true -- Print TPs to server console
-- ─────────────────────────────────────────────
-- MENU POSITION
-- 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center'
-- ─────────────────────────────────────────────
Config.MenuPosition = 'top-left'
-- ─────────────────────────────────────────────
-- OX_LIB NOTIFY
-- ─────────────────────────────────────────────
Config.Notify = {
enabled = true,
type = 'success', -- success | error | inform | warning
duration = 4000,
position = 'top-right',
}
-- ─────────────────────────────────────────────
-- FEATURES — toggle each on/off with true/false
-- ─────────────────────────────────────────────
Config.Features = {
-- ── Favorites ─────────────────────────────
-- Players can star locations; they appear in a Favorites tab
Favorites = true,
-- ── Cooldown ──────────────────────────────
-- Prevent teleport spam. Per-location override via loc.cooldown
Cooldown = true,
DefaultCooldown = 30, -- seconds (0 = no cooldown)
-- ── Teleport Cost ─────────────────────────
-- Deduct ESX money on teleport. Per-location override via loc.cost
TeleportCost = true,
DefaultCost = 0, -- $ default (0 = free)
CostAccount = 'money', -- ESX account: 'money' | 'bank'
-- ── Vehicle Teleport ──────────────────────
-- Teleport inside your current vehicle instead of leaving it behind
VehicleTeleport = true,
-- ── TP History Log ────────────────────────
-- Admins see a History tab with the last 50 teleports
TPHistory = true,
HistoryMaxEntries = 50,
-- ── Job Grade Requirement ─────────────────
-- Locations can require a minimum job grade (see loc.minGrade)
JobGrade = true,
-- ── Whitelist by Identifier ───────────────
-- Locations can have a whitelist of Discord/license IDs (see loc.whitelist)
Whitelist = true,
-- ── Time-locked Locations ─────────────────
-- Locations only accessible during certain server hours (see loc.hours)
TimeLock = true,
-- ── Disable in Vehicle ────────────────────
-- Block opening the menu while the player is in a vehicle
DisableInVehicle = true,
-- ── Disable in Combat ─────────────────────
-- Block teleport if player is currently in combat
DisableInCombat = true,
}
-- ─────────────────────────────────────────────
-- LOCATIONS
--
-- All fields:
-- id - unique number (required)
-- name - display name (required)
-- cat - 'city' | 'jobs' | 'admin' | 'vip' (required)
-- tag - 'free' | 'job' | 'admin' | 'vip' (required)
-- dot - 'green' | 'blue' | 'orange' | 'purple' | 'red' (required)
-- label - badge text in UI (required)
-- x,y,z - coordinates (required)
-- heading - facing direction 0-360 (required)
--
-- Optional per-location overrides:
-- minJob - require job name: e.g. 'police'
-- minGrade - require minimum job grade: e.g. 2 (needs Features.JobGrade = true)
-- adminOnly - true = only Config.AdminGroup
-- vipOnly - true = only Config.VipGroup
-- cooldown - seconds override (0 = no cooldown) (needs Features.Cooldown = true)
-- cost - money cost override (needs Features.TeleportCost = true)
-- withVehicle- true/false override vehicle TP (needs Features.VehicleTeleport = true)
-- whitelist - { 'discord:123', 'license:abc' } (needs Features.Whitelist = true)
-- hours - { from = 8, to = 20 } server hours (needs Features.TimeLock = true)
-- ─────────────────────────────────────────────
Config.Locations = {
-- ── CITY ──────────────────────────────────
{
id = 1,
name = 'Mission Row PD',
cat = 'city',
tag = 'job',
dot = 'blue',
label = 'POLICE',
x = 441.3, y = -982.2, z = 30.7,
heading = 90.0,
minJob = 'police',
minGrade = 0,
},
{
id = 2,
name = 'Pillbox Hospital',
cat = 'city',
tag = 'job',
dot = 'blue',
label = 'EMS',
x = 297.5, y = -584.3, z = 43.3,
heading = 0.0,
minJob = 'ambulance',
minGrade = 0,
},
{
id = 3,
name = 'Legion Square',
cat = 'city',
tag = 'free',
dot = 'green',
label = 'PUBLIC',
x = 195.2, y = -933.5, z = 30.7,
heading = 0.0,
},
{
id = 4,
name = 'Maze Bank Arena',
cat = 'city',
tag = 'free',
dot = 'green',
label = 'PUBLIC',
x = -238.0, y = -2038.0, z = 20.0,
heading = 0.0,
},
{
id = 5,
name = 'Airport (LSIA)',
cat = 'city',
tag = 'free',
dot = 'green',
label = 'PUBLIC',
x = -1037.0, y = -2738.0, z = 20.2,
heading = 0.0,
cost = 50, -- example: $50 to TP to airport
},
{
id = 6,
name = 'Sandy Shores',
cat = 'city',
tag = 'free',
dot = 'green',
label = 'PUBLIC',
x = 1853.3, y = 3687.1, z = 34.3,
heading = 0.0,
},
{
id = 7,
name = 'Paleto Bay',
cat = 'city',
tag = 'free',
dot = 'green',
label = 'PUBLIC',
x = -224.2, y = 6330.2, z = 32.4,
heading = 0.0,
},
{
id = 8,
name = 'Vinewood Hills',
cat = 'city',
tag = 'vip',
dot = 'purple',
label = 'VIP',
x = -460.3, y = 215.8, z = 91.2,
heading = 0.0,
vipOnly = true,
-- Example: only available 18:00–06:00
hours = { from = 18, to = 6 },
},
-- ── JOBS ──────────────────────────────────
{
id = 9,
name = 'Mechanic Shop',
cat = 'jobs',
tag = 'job',
dot = 'orange',
label = 'JOB',
x = -356.6, y = -133.9, z = 38.7,
heading = 180.0,
minJob = 'mechanic',
minGrade = 0,
},
{
id = 10,
name = 'Cocaine Lab',
cat = 'jobs',
tag = 'job',
dot = 'orange',
label = 'JOB',
x = 1104.6, y = -3191.3, z = 5.9,
heading = 45.0,
cooldown = 60, -- 60s cooldown on this location
},
{
id = 11,
name = 'Weed Farm',
cat = 'jobs',
tag = 'job',
dot = 'orange',
label = 'JOB',
x = 1102.5, y = 2195.4, z = 44.1,
heading = 0.0,
cooldown = 60,
},
{
id = 12,
name = 'Trucking Depot',
cat = 'jobs',
tag = 'job',
dot = 'orange',
label = 'JOB',
x = 54.2, y = -1754.5, z = 29.6,
heading = 270.0,
minJob = 'trucker',
minGrade = 1, -- must be grade 1+ trucker
},
{
id = 13,
name = 'Taxi Company',
cat = 'jobs',
tag = 'job',
dot = 'blue',
label = 'JOB',
x = 908.7, y = -160.9, z = 74.0,
heading = 0.0,
minJob = 'taxi',
},
{
id = 14,
name = 'Gun Shop',
cat = 'jobs',
tag = 'job',
dot = 'orange',
label = 'JOB',
x = 15.3, y = -1108.9, z = 29.8,
heading = 180.0,
-- Example: only open during business hours
hours = { from = 8, to = 22 },
},
-- ── VIP ───────────────────────────────────
{
id = 15,
name = 'VIP Penthouse',
cat = 'vip',
tag = 'vip',
dot = 'purple',
label = 'VIP',
x = -46.6, y = -584.7, z = 193.0,
heading = 0.0,
vipOnly = true,
-- Example whitelist (Discord IDs)
-- whitelist = { 'discord:123456789', 'license:abc123' },
},
{
id = 16,
name = 'VIP Garage',
cat = 'vip',
tag = 'vip',
dot = 'purple',
label = 'VIP',
x = -362.5, y = -134.4, z = 38.7,
heading = 90.0,
vipOnly = true,
withVehicle = true, -- always bring vehicle here
},
{
id = 17,
name = 'VIP Casino Floor',
cat = 'vip',
tag = 'vip',
dot = 'purple',
label = 'VIP',
x = 921.5, y = 47.0, z = 80.9,
heading = 0.0,
vipOnly = true,
cost = 500, -- $500 VIP casino entry
},
-- ── ADMIN ─────────────────────────────────
{
id = 18,
name = 'Admin Room',
cat = 'admin',
tag = 'admin',
dot = 'red',
label = 'ADMIN',
x = 0.0, y = 0.0, z = 100.0,
heading = 0.0,
adminOnly = true,
cooldown = 0,
},
{
id = 19,
name = 'Test Coords',
cat = 'admin',
tag = 'admin',
dot = 'red',
label = 'ADMIN',
x = 100.0, y = 100.0, z = 40.0,
heading = 0.0,
adminOnly = true,
cooldown = 0,
},
{
id = 20,
name = 'Skybox / Void',
cat = 'admin',
tag = 'admin',
dot = 'red',
label = 'ADMIN',
x = 0.0, y = 0.0, z = 3000.0,
heading = 0.0,
adminOnly = true,
cooldown = 0,
},
}