forked from qbcore-framework/qb-prison
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
154 lines (148 loc) · 4.36 KB
/
config.lua
File metadata and controls
154 lines (148 loc) · 4.36 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
Config = {}
Config.UseTarget = GetConvar('UseTarget', 'false') == 'true' -- Use qb-target interactions (don't change this, go to your server.cfg and add `setr UseTarget true` to use this and just that from true to false or the other way around)
local isServer = IsDuplicityVersion()
if not isServer then
--- This function will be triggered once the hack is done
--- @param success boolean
--- @param currentGate number
--- @param gateData table
--- @return nil
function Config.OnHackDone(success, currentGate, gateData)
if success then
TriggerServerEvent("prison:server:SetGateHit", currentGate)
TriggerServerEvent('qb-doorlock:server:updateState', gateData.gatekey, false, false, false, true)
else
TriggerServerEvent("prison:server:SecurityLockdown")
end
TriggerEvent('mhacking:hide')
end
end
Config.Jobs = {
["electrician"] = "Electrician"
}
Config.Uniforms ={
['male'] = {
outfitData ={
['t-shirt'] = {item = 15, texture = 0},
['torso2'] = {item = 345, texture = 0},
['arms'] = {item = 19, texture = 0},
['pants'] = {item = 3, texture = 7},
['shoes'] = {item = 1, texture = 0},
}
},
['female'] = {
outfitData ={
['t-shirt'] = {item = 14, texture = 0},
['torso2'] = {item = 370, texture = 0},
['arms'] = {item = 0, texture = 0},
['pants'] = {item = 0, texture = 12},
['shoes'] = {item = 1, texture = 0},
}
},
}
Config.Locations = {
jobs = {
["electrician"] = {
[1] = {
coords = vector4(1761.46, 2540.41, 45.56, 272.249),
},
[2] = {
coords = vector4(1718.54, 2527.802, 45.56, 272.249),
},
[3] = {
coords = vector4(1700.199, 2474.811, 45.56, 272.249),
},
[4] = {
coords = vector4(1664.827, 2501.58, 45.56, 272.249),
},
[5] = {
coords = vector4(1621.622, 2509.302, 45.56, 272.249),
},
[6] = {
coords = vector4(1627.936, 2538.393, 45.56, 272.249),
},
[7] = {
coords = vector4(1625.1, 2575.988, 45.56, 272.249),
}
}
},
["freedom"] = {
coords = vector4(1740.88, 2476.57, 44.85, 299.49)
},
["outside"] = {
coords = vector4(1848.13, 2586.05, 44.67, 269.5)
},
["yard"] = {
coords = vector4(1765.67, 2565.91, 44.56, 1.5)
},
["middle"] = {
coords = vector4(1693.33, 2569.51, 44.55, 123.5)
},
["shop"] = {
coords = vector4(1777.59, 2560.52, 44.62, 187.83)
},
spawns = {
[1] = {
animation = "bumsleep",
coords = vector4(1661.046, 2524.681, 45.564, 260.545)
},
[2] = {
animation = "lean",
coords = vector4(1650.812, 2540.582, 45.564, 230.436)
},
[3] = {
animation = "lean",
coords = vector4(1654.959, 2545.535, 45.564, 230.436)
},
[4] = {
animation = "lean",
coords = vector4(1697.106, 2525.558, 45.564, 187.208)
},
[5] = {
animation = "sitchair4",
coords = vector4(1673.084, 2519.823, 45.564, 229.542)
},
[6] = {
animation = "sitchair",
coords = vector4(1666.029, 2511.367, 45.564, 233.888)
},
[7] = {
animation = "sitchair4",
coords = vector4(1691.229, 2509.635, 45.564, 52.432)
},
[8] = {
animation = "finger2",
coords = vector4(1770.59, 2536.064, 45.564, 258.113)
},
[9] = {
animation = "smoke",
coords = vector4(1792.45, 2584.37, 45.56, 276.24)
},
[10] = {
animation = "smoke",
coords = vector4(1768.33, 2566.08, 45.56, 176.83)
},
[11] = {
animation = "smoke",
coords = vector4(1696.09, 2469.4, 45.56, 1.4)
}
}
}
Config.CanteenItems = {
[1] = {
name = "sandwich",
price = 4,
amount = 50,
info = {},
type = "item",
slot = 1
},
[2] = {
name = "water_bottle",
price = 4,
amount = 50,
info = {},
type = "item",
slot = 2
}
}