🎉 Character is released. Read more →
Paid Scripts
License Manager
Integrations
Other Scripts
qbx_core

qbx_core

This integration is for starting items

Replace

qbx_core/config/shared.lua
    starterItems = { -- Character starting items
        { name = 'phone', amount = 1 },
        { name = 'id_card', amount = 1, metadata = function(source)
                assert(GetResourceState('qbx_idcard') == 'started', 'qbx_idcard resource not found. Required to give an id_card as a starting item')
                return exports.qbx_idcard:GetMetaLicense(source, {'id_card'})
            end
        },
        { name = 'driver_license', amount = 1, metadata = function(source)
                assert(GetResourceState('qbx_idcard') == 'started', 'qbx_idcard resource not found. Required to give an id_card as a starting item')
                return exports.qbx_idcard:GetMetaLicense(source, {'driver_license'})
            end
        },
    }

With

qbx_core/config/shared.lua
    starterItems = { -- Character starting items
        { name = 'phone', amount = 1 },
        { name = 'identification', amount = 1, metadata = function(source)
                return exports.bcs_licensemanager:GenerateLicenseMetaData(source, 'identification')
            end
        },
        -- Driver Licenses
        { name = 'driver_car', amount = 1, metadata = function(source)
                return exports.bcs_licensemanager:GenerateLicenseMetaData(source, 'driver_car')
            end
        },
        { name = 'driver_bike', amount = 1, metadata = function(source)
                return exports.bcs_licensemanager:GenerateLicenseMetaData(source, 'driver_bike')
            end
        },
        { name = 'driver_truck', amount = 1, metadata = function(source)
                return exports.bcs_licensemanager:GenerateLicenseMetaData(source, 'driver_truck')
            end
        },
    }
Last updated on