Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.24 KB

readme.md

File metadata and controls

40 lines (32 loc) · 1.24 KB

Preview

image image image

This MDT is work in progress and features may not work properly.

Dependencies

Dispatch System

Credit

Original Repo: https://github.com/FlawwsX/erp_mdt

QBCore Changes for License

  • qb-core/server/player.lua
  • replace the old logic of licenses to this new logic
  • search for PlayerData.metadata["licences"] and replace the whole block of licences with the block below
if PlayerData.metadata["licences"]["drive_truck"] ~= nil then
    PlayerData.metadata['licences'] = PlayerData.metadata['licences']
else
    PlayerData.metadata['licences'] = {
        ['driver'] = true,
        ['business'] = false,
        ['weapon'] = false,
        ["drive_bike"] = false,
        ["drive_truck"] = false,
        ["pilot"] = false,
    }
end