v4.6.0
Runs on Qbox. Every framework branch in this resource was replaced by the msk_core bridge, which removed roughly a hundred lines without changing what the script does.
This release calls MSK.GetPlayer, MSK.GetPlayers, MSK.RegisterItem and
MSK.Bridge.Framework.Type in their 4.0.0 form. On msk_core 3.x the player
object arrives without its methods and the item removal fails. Update msk_core
along with this script.
Added
- Qbox support. Qbox uses the same
player_vehicleslayout as QBCore, verified againstqbx_vehicles/vehicles.sql. GetPlayerIdentifier(Player)as a helper of its own. The identifier used to be read inline in three places, each with its own ESX and QBCore branch.
Changed
-
Framework detection is gone from this resource. It sat at the top of
client/main.lua,server/main.luaandserver/hotwire.lua, once per file, and knew only ESX and QBCore. msk_core has already detected the framework when these files load. -
Config.Frameworkis no longer read anywhere. The line stays inconfig.luaso an existing config does not break, but changing it has no effect. Pin the framework in msk_core'sconfig.luainstead. -
Usable items are registered through
MSK.RegisterItem, which covers ESX, QBCore and Qbox in one call, instead ofESX.RegisterUsableItemandQBCore.Functions.CreateUseableItemside by side. -
The police alert walks
MSK.GetPlayers(), one list with the same fields on every framework, instead ofESX.GetExtendedPlayersandQBCore.Functions.GetQBPlayers. -
GetPlayerFromId,GetPlayerFromIdentifierandGetPlayerJobkeep their names, because the rest of the resource calls them, but they are one line each now.
Fixed
- Removing the lockpick item no longer runs against a
nilplayer when the lookup fails.
Changed files
fxmanifest.lua
config.lua
client/main.lua
server/main.lua
server/hotwire.lua