Repository navigation
Expand file tree
/
Copy pathHandcuffs.json
More file actions
212 lines (212 loc) · 8.94 KB
/
Copy pathHandcuffs.json
File metadata and controls
212 lines (212 loc) · 8.94 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
[
{
"version": "3.1.1",
"changelogs": [
"- Requires msk_core 4.1.0 or newer, update both together",
"- Notifications use the table form of msk_core 4.1.0, so the deprecation warnings are gone. If you keep your own config, copy the new Config.Notification lines",
"- The msk_core version is checked on start and an error is logged in the server console when it is too old",
"- The escort hint uses the table form of MSK.TextUI.Show",
"- Replace fxmanifest.lua, config/static.lua, client/main.lua and server/versionchecker.lua to update",
"- Changed files [fxmanifest.lua, config/static.lua, client/main.lua, server/versionchecker.lua]"
]
},
{
"version": "3.1.0",
"changelogs": [
"- Requires msk_core 4.0.0 or newer, update both together",
"- Security: msk_core:playerLogout was registered as a net event on the server. The event is server-local, so any client could fire it with a foreign player id and clear somebody else's handcuff state",
"- Fixed that the logout handler had never run once. Nothing in msk_core 3.x ever triggered that event, so a character switch left the handcuff state behind. A disconnect was always covered by playerDropped",
"- Fixed that on Qbox every player counted as unemployed in the client side pre-checks, and that the job dropdown in the dashboard stayed empty there",
"- Fixed that the framework group was only ever resolved on ESX. It went through getGroup(), a method QBCore and Qbox do not have",
"- Fixed that the QBCore only fallback ran on every framework, because its early return could never fire",
"- The client restore listens to one event instead of three. The two framework events were a workaround for msk_core 3.x and fired the restore up to three times per spawn",
"- Replace the whole resource to update",
"- Changed files [fxmanifest.lua, client/main.lua, client/actions.lua, server/main.lua, server/admin/api.lua, server/admin/permissions.lua]"
]
},
{
"version": "3.0.1",
"changelogs": [
"- Fixed your team not being able to open the admin dashboard even with the group set in the server.cfg. A plain add_principal only makes a player a member of the group, it does not create the matching ace object the check was looking for, and on QBCore the principals are named qbcore.admin instead of group.admin with only qbcore.god linked to group.admin. The script now registers its own ace object per group on start and accepts both spellings, so add_principal ... group.mod and /addpermission 1 mod both work",
"- Fixed the group check on the Permissions tab reporting 'not found' for brand new groups",
"- Fixed the 'Access denied for command add_ace' spam on every server start. FiveM checks add_ace against the resource that runs it and no resource holds that right by default, so the ace objects were never actually created. They are registered through msk_core now and the script checks up front whether it is allowed",
"- Requires msk_core 3.3.0 (MSK.AddRawAce, MSK.CanAddAce). Update msk_core along with this script and make sure your server.cfg has the msk_core ace lines, e.g. add_ace resource.msk_core command.add_ace allow",
"- Changed files [fxmanifest.lua, server/admin/permissions.lua, server/admin/boot.lua, server/admin/api.lua]"
]
},
{
"version": "3.0.0",
"changelogs": [
"- Full rewrite: QBCore support next to ESX, MySQL via oxmysql instead of database.json (migrated automatically), statebags and server-side validation for every action.",
"- Added a real target menu for ox_target (recommended) and qb-target with state-aware, translated labels. v2 had no target options at all.",
"- Added an in-game admin dashboard (/handcuffadmin): live player actions, items, job restrictions, settings and a per-action permission system.",
"- Settings live in the database now and are managed from the dashboard. The config is imported once on the first start.",
"- Split config.lua into config/settings.lua and config/static.lua. The Discord webhook and the theme are editable in the dashboard.",
"- New toggles: no item needed to remove the headbag/tape, and keep the remove items (ankletracker key, headbag key, tape key, uncuff item) instead of consuming them.",
"- Default restriction items are always usable regardless of job, and uncuffing only works with the item matching how the person was cuffed.",
"- Items configured in the dashboard register without a restart (ESX, QBCore, ox_inventory, jaksam_inventory).",
"- Added an escort hint that shows the key you have bound to release a dragged person, and luxu_admin support for the dashboard access (Config.LuxuAdmin in config/static.lua).",
"- Heads up: config.lua is replaced by the config folder, so check your config after updating."
]
},
{
"version": "2.3.2",
"changelogs": [
"- Removed uneccessary code",
"- Changed files [client/main.lua, client/functions.lua]"
]
},
{
"version": "2.3.1",
"changelogs": [
"- Fixed headbag can be removed by using the headbag item",
"- Fixed headbag can be added by using the remove item",
"- Fixed tape can be removed by using the tape item",
"- Fixed tape can be added by using the tape item"
]
},
{
"version": "2.3.0",
"changelogs": [
"- Some Bugfixes",
"- Updates some Natives"
]
},
{
"version": "2.2.6",
"changelogs": [
"- Removed `Config.addCuffItems`",
"- Added `Config.GiveCuffItemBack`",
"- Updated functions for latest msk_core version"
]
},
{
"version": "2.2.5",
"changelogs": [
"- Added Config.UncuffOnPlayerDied",
"- Added 'ESX.SetPlayerData()' on cuff, hardcuff and uncuff (ESX.PlayerData.isHandcuffed)",
"- Added functions 'Cuff', 'Hardcuff' and 'Uncuff'"
]
},
{
"version": "2.2.4",
"changelogs": [
"- Added function 'dragPlayer'",
"- Added function 'putPlayerInCar'",
"- Added function 'putPlayerOutOfCar'"
]
},
{
"version": "2.2.3",
"changelogs": [
"- Added Config.RestrictItems",
"- Added new Translation ['not_allowed']",
"- Changed folder structure"
]
},
{
"version": "2.2.2",
"changelogs": [
"- Fixed that the removeItems doesn't work",
"- Added Event to Documentation for some Multichars"
]
},
{
"version": "2.2.1",
"changelogs": [
"- Fixed Player Commands",
"- Fixed Usable Items for AnkleTracker, Headbag and Tape",
"- Some other Bugfixes"
]
},
{
"version": "2.2.0",
"changelogs": [
"- Parts of the code reworked",
"- Hopefully fixed a bug where props are not deleted",
"- Added Command for cuff, hardcuff and uncuff",
"- Added suggestion: Tape to mute players",
"- Added Custom Prop for the Tape"
]
},
{
"version": "2.1.0",
"changelogs": [
"- Added Config.EnableProps",
"- Added Config.Props",
"- Added Remove Item for Ankletracker",
"- Added Remove Item for Headbag",
"- Code Optimizations"
]
},
{
"version": "2.0.5",
"changelogs": [
"- Fixed an Error with Anketrackers (nil value addBlips)"
]
},
{
"version": "2.0.4",
"changelogs": [
"- Changes in VersionChecker: removed the ####",
"- Added new Event Handlers (see Documentation)"
]
},
{
"version": "2.0.3",
"changelogs": [
"- Changes on Ankletracker Blips",
"- Added Prefix for Ankletracker Blips"
]
},
{
"version": "2.0.2",
"changelogs": [
"- Fixed an Issue that causes server hitches",
"- Fixed that sometimes the Drag Animation don't stop",
"- Added tokovoip to Config.SetRadioChannel"
]
},
{
"version": "2.0.1",
"changelogs": [
"- Added Commands for Ankletracker and Headbag",
"- Added check if the player has the item",
"- Changed that the Door will open on putInCar"
]
},
{
"version": "2.0.0",
"changelogs": [
"- Completely reworked the code (Better performance)",
"- No SQL will be needed anymore, all saved in database.json",
"- New Documentation! Please look at it, old Events and Exports won't work",
"- Added new Animations",
"- Added Props for Handcuffs for Cuff and Keys for Uncuff",
"- Added Ankletracker were specific jobs can track a players position",
"- Added Headbag were the player gets a headbag and the screen will be black",
"- Added much more, you will find out..."
]
},
{
"version": "1.9.2",
"changelogs": [
"- Encrypted Version is now Open Client",
"- Open Client Version is now Source Code",
"- Fixed a Bug where you can't uncuff someone"
]
},
{
"version": "1.9.1",
"changelogs": [
"- Updated Version Checker",
"- Added that you can only uncuff someone with f.e. cuff_keys if the person was cuffed with cuffs"
]
},
{
"version": "1.0",
"changelogs": [
"- Release"
]
}
]