forked from IamLation/lation_pawnshop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.lua
95 lines (88 loc) · 4.13 KB
/
config.lua
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
Config = {} -- Do not alter
-- 🔎 Looking for more high quality scripts?
-- 🛒 Shop Now: https://lationscripts.com/github
-- 💬 Join Discord: https://discord.gg/9EbY4nM5uu
Config.YouFoundTheBestScripts = true
-- Use only if needed, directed by support or know what you're doing
-- Notice: enabling debug features will significantly increase resmon
-- And should always be disabled in production
Config.Debug = false
-- Do you want to be notified via server console if an update is available?
-- True if yes, false if no
Config.VersionCheck = false
-- Target system, available options are: 'ox_target', 'qb-target', 'qtarget', 'custom' & 'none'
-- 'custom' needs to be added to client/functions.lua
-- If 'none' then TextUI is used instead of targeting
Config.Target = 'none'
-- Notification system, available options are: 'ox_lib', 'esx', 'qb', 'okok' & 'custom'
-- 'custom' needs to be added to client/functions.lua
Config.Notify = 'ox_lib'
-- If using TextUI (Config.Target = 'none') then what key do you want to open the shop?
-- Default is 38 (E), find more control ID's here: https://docs.fivem.net/docs/game-references/controls/
Config.Interact = 38
-- Manage & create your pawn shops here
Config.Shops = {
['vinewood'] = { -- Unique identifier for this shop
name = 'Vinewood Pawn & Jewelry', -- Shop name
slots = 25, -- How many slots are available
weight = 100000, -- How much weight is available
coords = vec4(-1459.2361, -413.2576, 36.2567, 343.8426), -- Where this shop exists
radius = 1.0, -- How large of a circle zone radius (for targeting only)
spawnPed = false, -- Spawn a ped to interact with here?
pedModel = 'a_m_y_beach_02', -- If spawnPed = true, what ped model?
-- You can limit the hours at which the shop is available here
-- Min is the earliest the shop is available (default 06:00AM)
-- Max is the latest the shop is available (detault 21:00 aka 9PM)
-- If you want it available 24/7, set min to 1 and max to 24
hour = { min = 6, max = 21 },
account = 'cash', -- Give 'cash', 'bank' or 'dirty' money when selling here?
allowlist = {
-- What items can be sold here
-- Any item not in this list, cannot be sold here
-- ['itemSpawnName'] = { label = 'Item Name', price = sellPrice }
['water'] = { label = 'Water', price = 50 },
['panties'] = { label = 'Knickers', price = 10 },
['lockpick'] = { label = 'Lockpick', price = 25 },
['phone'] = { label = 'Phone', price = 150 },
['armour'] = { label = 'Bulletproof Vest', price = 225 },
-- Add & remove items here as desired
-- Be sure to follow the same format as above
},
-- If placeholders = true then the "slots" amount above will be overridden
-- This option will fill the shop with "display" items, and only
-- Display items that are possible to sell here. If false, it will be
-- An empty inventory, and the "slots" amount above will not be overridden
placeholders = true,
blip = {
enabled = true, -- Enable or disable the blip for this shop
sprite = 59, -- Sprite ID (https://docs.fivem.net/docs/game-references/blips/)
color = 0, -- Color (https://docs.fivem.net/docs/game-references/blips/#blip-colors)
scale = 0.8, -- Size/scale
label = 'Pawn Shop' -- Label
}
},
['strawberry'] = {
name = 'Strawberry Ave Pawn Shop',
slots = 25,
weight = 100000,
coords = vec4(182.7942, -1319.3451, 29.3173, 244.3924),
radius = 1.0,
spawnPed = true,
pedModel = 'a_m_y_beach_02',
hour = { min = 6, max = 21 },
account = 'cash',
allowlist = {
['burger'] = { label = 'Burger', price = 25 },
},
placeholders = false,
blip = {
enabled = true,
sprite = 59,
color = 0,
scale = 0.8,
label = 'Pawn Shop'
}
},
-- Add more pawn shops here as desired
-- Be sure to follow the same format as above
}