Repository navigation
Expand file tree
/
Copy pathVehicleKeys.json
More file actions
255 lines (255 loc) · 14.4 KB
/
Copy pathVehicleKeys.json
File metadata and controls
255 lines (255 loc) · 14.4 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
[
{
"version": "3.4.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",
"- Config.openTextUI uses the table form of MSK.TextUI.Show",
"- Replace fxmanifest.lua, config/static.lua and server/versionchecker.lua to update",
"- Changed files [fxmanifest.lua, config/static.lua, server/versionchecker.lua]"
]
},
{
"version": "3.4.0",
"changelogs": [
"- Requires msk_core 4.0.0 or newer, update both together",
"- Security: money could be created out of nothing when selling a vehicle. Both framework branches credited the seller before taking the money from the buyer, so a deduction that failed left the seller paid and the buyer untouched. The money is taken first now and only a successful deduction credits the seller",
"- Added Qbox support. Qbox uses the same player_vehicles and players layout as QBCore, verified against qbx_core.sql and qbx_vehicles/vehicles.sql",
"- Fixed that nothing was ever set up for a player on ESX. The keyring item and the conversion of the old storage method hung on esx:playerLoaded and on two QBCore client events, the resource listens to msk_core:playerLoaded now",
"- Fixed that the load and logout handlers were net events. Server side those events are local, and as net events any client could fire them with a foreign player id",
"- Fixed that the job rank was read as grade_name on ESX and grade.name on QBCore, and existed on neither under Qbox. It is gradeName everywhere now",
"- Fixed that GetPlayerVehicles returned an empty list and offline players showed up as their raw identifier in the dashboard. Both branched on Config.Framework, which msk_core detects now, so the value stayed at AUTO and every branch was skipped",
"- Config.Framework in config/static.lua is no longer read. The line stays so an existing config does not break, but changing it has no effect",
"- Framework detection is gone from this resource, msk_core has already done it when these files load",
"- The client no longer keeps its own copy of the player data, msk_core keeps it. Use MSK.GetPlayerData()",
"- Usable items are registered through MSK.RegisterItem, which covers all three frameworks in one call",
"- Replace the whole resource to update",
"- Changed files [fxmanifest.lua, config/static.lua, client/main.lua, client/encrypted.lua, server/main.lua, server/functions.lua, server/storage.lua, server/admin/api.lua, server/admin/permissions.lua]"
]
},
{
"version": "3.3.3",
"changelogs": [
"- Fixed QBCore and Qbox staff not being able to open the admin dashboard even with correct permissions in the server.cfg. QBCore names its group principals qbcore.admin instead of group.admin and only links qbcore.god to group.admin, so everyone below god level failed the check. The script now registers its own ace object per group and accepts both spellings.",
"- Fixed the /adlock command being dead on QBCore for the same reason.",
"- 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"
]
},
{
"version": "3.3.2",
"changelogs": [
"- Fixed admins with group.admin not being able to open the dashboard. A plain add_principal in your server.cfg only makes a player a member of the group, it does not create the matching ace object, so the check came back empty. The script now creates those ace objects itself on start for admin, for every group in Config.dashboardGroups and for every group in the permission matrix.",
"- Fixed the group check in the Permissions tab reporting 'not found' for brand new groups."
]
},
{
"version": "3.3.1",
"changelogs": [
"- Fixed the dashboard falling back to German for any language it did not have its own translation for (Hungarian). The dashboard now ships a full Hungarian translation, so picking it in the Settings tab actually shows Hungarian everywhere instead of silently rendering in German."
]
},
{
"version": "3.3.0",
"changelogs": [
"- Added support for the Context Menu and the Menu from msk_core. Both menu dropdowns got the new options msk_context (mouse driven) and msk_menu (keyboard driven, you can keep moving while it is open). Needs msk_core v3.0.0 or newer.",
"- The keys menu now defaults to msk_menu and the locksmith to msk_context. nui, ox_context and ox_menu stay available and can be switched from the dashboard Settings tab.",
"- Fixed Hungarian missing from the dashboard language dropdown. The dropdown is now built from the languages that exist in translation.lua, so every translated language shows up on its own.",
"- The server also only accepted de and en when saving the language, so any other language was dropped on save. It now accepts any language translation.lua provides."
]
},
{
"version": "3.2.0",
"changelogs": [
"- The /keyMenu and the locksmith menu now run on their own NUI in the MSK style instead of ox_context or ox_menu. Same flow as before (key categories, then your vehicles, then the actions), just as its own interface.",
"- nui is the new default for both menus. ox_context and ox_menu stay available as a fallback and can be switched from the dashboard Settings tab."
]
},
{
"version": "3.1.1",
"changelogs": [
"- Fixed key hand-outs being broken since 3.0 for garage and shop integrations, where taking your own car out would say the vehicle is not yours and give no key. A key saved in the database but missing from your inventory is now handed back too.",
"- Temporary keys can now be added from the client for any vehicle, primary and secondary keys still need ownership, and the server export exports.msk_vehiclekeys:AddKey can always hand out keys."
]
},
{
"version": "3.1.0",
"changelogs": [
"- Added luxu_admin support for the admin dashboard. When luxu_admin is running, a player's staff group is picked up automatically, so your luxu staff can open the dashboard without setting up FiveM ace permissions.",
"- You can require staff to be on duty and map luxu group names to your dashboard groups in config/static.lua."
]
},
{
"version": "3.0.0",
"changelogs": [
"- Added an in-game admin dashboard (/advehiclekeys) to manage keys, plates, locksmiths, the access lists and settings, with a permission system so your team only sees what you allow.",
"- Settings live in the database now and are managed from the dashboard. The config gets imported once on the first start.",
"- Split config.lua into config/settings.lua and config/static.lua. Vehicle models in the lists can be spawn names like 'police' now, old hashes still work.",
"- Added a force refresh (gives back every missing key item) and an option to make the vehicle owner carry the key item too.",
"- Fixed a few key exploits. Handing out keys, exchanging locks and transferring a car now check that you own the vehicle and stand next to the other player.",
"- Heads up: config.lua is replaced by the config folder, so check your config after updating."
]
},
{
"version": "2.0.0",
"changelogs": [
"- Storage: JSON file → MariaDB (msk_vehiclekeys_keys) with in-memory cache + write-through; schema creation & JSON import run automatically on first start",
"- New modules: storage.lua, inventory.lua, utils.lua — clean separation instead of a monolith; explicit load order in fxmanifest.lua",
"- Inventory: unified interface, now only ox_inventory + jaksam_inventory (dropped: core_inventory, qs-inventory)",
"- Key transfer: seller-availability & distance checks (new translations transfer_seller_unavailable, transfer_too_far)",
"- Fixes: playerCoords nil crash, GetClosestEntityWithPlate nil guard, cooldown memory leak",
"- Removed: encrypted.lua, ox_inventory.lua, vehiclekeys.json",
"- Breaking: v1 → v2, JSON storage & part of the inventory support are gone"
]
},
{
"version": "1.4.0",
"changelogs": [
"- Fixed an issue with 'lockVehiclesFromNPCs' enabled: unowned vehicles will no longer be locked if a player has / had control of it"
]
},
{
"version": "1.3.9",
"changelogs": [
"- Fixed that the server/encrypted.lua won't load after the update to 1.3.8",
"- Some Bugfixes and code improvements"
]
},
{
"version": "1.3.8",
"changelogs": [
"Added validation of vehicle keys before saving — prevents `null` or invalid entries from being written to `vehiclekeys.json`",
"Added automatic backup file (`vehiclekeys_backup.json`) — created before every save and used as fallback if the main file gets corrupted",
"Added safe load on resource start with `pcall` — tries `vehiclekeys.json`, then backup, then empty table",
"Improved `AddKey` function to abort cleanly with a logged error instead of leaving partial entries in memory"
]
},
{
"version": "1.3.7",
"changelogs": [
"- Added new function/export 'ChangeNumberPlate' to change the number plate on the key item.",
"- Added Support for Jaksam Inventory",
"- Some Bugfixes and code improvements"
]
},
{
"version": "1.3.6",
"changelogs": [
"- Fixed a problem with the (exchange vehicle locks) feature.",
"- Added model validations.",
"- Changed files (client/main.lua, server/functions.lua, client/menu.lua)"
]
},
{
"version": "1.3.5",
"changelogs": [
"- Fixed a problem with the export (toggleLock), keep in mind that the docs also has been changed for the (toggleLock) export.",
"- Changed files (client/main.lua)"
]
},
{
"version": "1.3.4",
"changelogs": [
"- Fixed locksmith menu won't open if 'target_system' is set to 'false' ",
"- Changed files (client/main.lua) "
]
},
{
"version": "1.3.3",
"changelogs": [
"- Fixed Whitelisted vehicles on clientside",
"- Fixed closest vehicle Notification on serverside"
]
},
{
"version": "1.3.2",
"changelogs": [
"- Fixed the contract item",
"- Some code improvements and removing of unnecessary code"
]
},
{
"version": "1.3.1",
"changelogs": [
"- Fixed something with Lock NPC Vehicles"
]
},
{
"version": "1.3.0",
"changelogs": [
"- Fixed a Bug where sometimes the script writes 'null' into the 'vehiclekeys.json'",
"- Finally fixed a Bug where you can't (un)lock a vehicle",
"- Removed `openKeyRing` function/export",
"- Changed Stash based Keyring System to OX Item Property based Keyring -> (Look at the installation documentation!)"
]
},
{
"version": "1.2.2",
"changelogs": [
"- Fixed a bug where you can't (un)lock a vehicle with ox_target",
"- Added 'toggleLockAdmin' function/export for clientside"
]
},
{
"version": "1.2.1",
"changelogs": [
"- Fixed a bug where you can't (un)lock a vehicle"
]
},
{
"version": "1.2.0",
"changelogs": [
"- Added Keyring System for ox_inventory",
"- Added 'Select Seat' for ox_target",
"- Added 'Config.AdminVehicles' -> Admins can use the Hotkey to (un)lock those vehicles",
"- Added new Translations in translation.lua",
"- Major changes on some functions/exports -> please read the documentation again and change the exports in your scripts",
"- Changes for better debug/error understanding",
"- Moved ox_inventory stuff from server/main.lua to server/ox_inventory.lua"
]
},
{
"version": "1.1.0",
"changelogs": [
"- Added 'Config.VehicleTarget' to (Un)lock a vehicle with a Target System",
"- Added Probability for 'lockVehiclesFromNPCs' whether a vehicle is open",
"- Fixed Function 'HasPlayerKeyOrIsVehicleOwner'"
]
},
{
"version": "1.0.4",
"changelogs": [
"- Added 'Config.OnRefreshKeys'",
"- Added 'Config.GivePrimaryKey'",
"- Other, not significant, changes"
]
},
{
"version": "1.0.3",
"changelogs": [
"- Fixed that vehicles that are not owned by someone but the player has a key are always closed if 'lockVehiclesFromNPCs = true'"
]
},
{
"version": "1.0.2",
"changelogs": [
"- Hopefully fixed a bug where sometimes on PlayerLoaded the script inserts 'null' to 'vehiclekeys.json' that causes errors"
]
},
{
"version": "1.0.1",
"changelogs": [
"- Added new Translations",
"- Added that you get missing secondary keys on 'refreshKeys' Command",
"- Fixed a Bug for 'msk_enginetoggle' - (Vehicle Lockpick/Hotwire)",
"- Fixed a Bug with 'ox_inventory' and giving the key item so someone else"
]
},
{
"version": "1.0.0",
"changelogs": [
"- Release Version"
]
}
]