Documentation
Search
K
📜

CONFIG

You can check out default QBCore ad ESX config.
1
Config = {
2
3
-- COMPATABILITY
4
UsingCoreInventory = false, -- If you have core_inventory and want to use cloth as item, set this to true
5
UsingFivemApperance = false, -- If you use Fivem Apperance as skin manager, set this to true
6
UsingIlleniumAppearance = false, -- If you use Illenium Appearance as skin manager, set this to true and UsingFivemApperance to false
7
-- /!\ MAKE SURE YOU IMPORT '@ox_lib/init.lua' in the shared_script section of the fxmanifest /!\
8
9
EnableFreeClothWhenAlreadyBuy = true, -- If true, cloth bougth by player will be save and display as free in store when they want to buy them another time, if false, player will need to buy the full price of the cloth even if it own it once
10
11
CoreClothingItems = {
12
['Clothes'] = {
13
[1] = "mask",
14
[4] = "pants",
15
[5] = "bag",
16
[6] = "shoes",
17
[7] = "accessory",
18
[8] = "tshirt",
19
[9] = "vest",
20
[11] = "torso"
21
},
22
['Accessories'] = {
23
[0] = "hat",
24
[1] = "glass",
25
[2] = "ear",
26
[6] = "watch",
27
[7] = "bracelet"
28
}
29
},
30
31
-- STORES
32
Stores = {
33
['hnm'] = {
34
Label = 'H&M', -- Name of the store
35
Coords = { -- Coords of the store that will be display the same cloth to buy
36
vector3(1693.32, 4823.48, 41.06),
37
vector3(-712.215881, -155.352982, 37.4151268),
38
vector3(-1192.94495, -772.688965, 17.3255997),
39
vector3(425.236, -806.008, 28.491),
40
vector3(-162.658, -303.397, 38.733),
41
vector3(75.950, -1392.891, 28.376),
42
vector3(-822.194, -1074.134, 10.328),
43
vector3(-1450.711, -236.83, 48.809),
44
vector3(4.254, 6512.813, 30.877),
45
vector3(615.180, 2762.933, 41.088),
46
vector3(615.180, 2762.933, 41.088),
47
vector3(1196.785, 2709.558, 37.222),
48
vector3(-3171.453, 1043.857, 19.863),
49
vector3(-1100.959, 2710.211, 18.107),
50
vector3(-1207.65, -1456.88, 4.3784737586975),
51
vector3(121.76, -224.6, 53.56),
52
vector3(-814.3, -183.8, 36.6),
53
vector3(136.8, -1708.4, 28.3),
54
vector3(-1282.6, -1116.8, 6.0),
55
vector3(1931.5, 3729.7, 31.8)
56
},
57
Pattern = 'hnm_pattern.png', -- Background image of the shop (html/img)
58
Logo = 'hnm.png', -- Logo of the shop (html/img)
59
Button = '#ff143c',
60
Background1 = '#d6d6d6',
61
Background2 = '#ffd9d9',
62
Checkout = '#ff143c',
63
Blip = 73, -- Blip of the shop display on the map
64
BlipColor = 48, -- Blip color of the shop display on the map
65
Radius = 5.0,
66
Clothes = {
67
-- GENDER CATEGORIES
68
['men'] = {
69
category = true,
70
label = 'MEN',
71
parent = ''
72
},
73
['woman'] = {
74
category = true,
75
label = 'WOMAN',
76
parent = ''
77
},
78
79
-- MEN CLOTH CATEGORIES
80
['men_pants'] = {
81
category = true,
82
label = 'PANTS',
83
parent = 'men'
84
},
85
['men_torso'] = {
86
category = true,
87
label = 'TOP',
88
parent = 'men'
89
},
90
['men_tshirt'] = {
91
category = true,
92
label = 'T-SHIRT',
93
parent = 'men'
94
},
95
['men_shoes'] = {
96
category = true,
97
label = 'SHOES',
98
parent = 'men'
99
},
100
['men_masks'] = {
101
category = true,
102
label = 'MASKS',
103
parent = 'men'
104
},
105
['men_watch'] = {
106
category = true,
107
label = 'WATCH',
108
parent = 'men'
109
},
110
['men_glass'] = {
111
category = true,
112
label = 'GLASSES',
113
parent = 'men'
114
},
115
['men_bracelet'] = {
116
category = true,
117
label = 'BRACELET',
118
parent = 'men'
119
},
120
['men_hat'] = {
121
category = true,
122
label = 'HATS',
123
parent = 'men'
124
},
125
['men_ear'] = {
126
category = true,
127
label = 'EAR',
128
parent = 'men'
129
},
130
131
-- WOMAN CLOTH CATEGORIES
132
['woman_pants'] = {
133
category = true,
134
label = 'PANTS',
135
parent = 'woman'
136
},
137
['woman_torso'] = {
138
category = true,
139
label = 'TOP',
140
parent = 'woman'
141
},
142
['woman_shoes'] = {
143
category = true,
144
label = 'SHOES',
145
parent = 'woman'
146
},
147
['woman_masks'] = {
148
category = true,
149
label = 'MASKS',
150
parent = 'woman'
151
},
152
['woman_tshirt'] = {
153
category = true,
154
label = 'T-SHIRT',
155
parent = 'woman'
156
},
157
['woman_watch'] = {
158
category = true,
159
label = 'WATCH',
160
parent = 'woman'
161
},
162
['woman_glass'] = {
163
category = true,
164
label = 'GLASSES',
165
parent = 'woman'
166
},
167
['woman_bracelet'] = {
168
category = true,
169
label = 'BRACELET',
170
parent = 'woman'
171
},
172
['woman_hat'] = {
173
category = true,
174
label = 'HATS',
175
parent = 'woman'
176
},
177
['woman_ear'] = {
178
category = true,
179
label = 'EAR',
180
parent = 'woman'
181
}
182
}
183
}
184
}
185
}
186
187
function SendTextMessage(msg)
188
189
SetNotificationTextEntry('STRING')
190
AddTextComponentString(msg)
191
DrawNotification(0, 1)
192
193
-- EXAMPLE USED IN VIDEO
194
-- exports['mythic_notify']:SendAlert('inform', msg)
195
196
end