Exports
ALL OF EXPORTS FOR SERVER SIDE (TO MORE SECURITY)
Check License
exports['ata_dmvschool_v2']:CheckLicense(source, license)
-- this exports just return TRUE or FALSEESX.RegisterServerCallback('esx_policejob:checkDriverLicense', function(source, cb)
local hasLicense = exports['ata_dmvschool_v2']:CheckLicense(source, 'driver')
cb(hasLicense)
end)QBCore.Functions.CreateCallback('qb-policejob:checkBoatLicense', function(source, cb)
local hasLicense = exports['ata_dmvschool_v2']:CheckLicense(source, 'boat')
cb(hasLicense)
end)Give License To Player
exports['ata_dmvschool_v2']:GiveLicenseToPlayer(source, license)
-- this exports just give to a player a license
-- note this export don't need to give theory license to player (is automaticly)ESX.RegisterServerCallback('esx_dmvschool:giveTruckLicense', function(source, cb)
local success = exports['ata_dmvschool_v2']:GiveLicenseToPlayer(source, 'truck')
cb(success)
end)QBCore.Functions.CreateCallback('qb-dmvschool:giveBoatLicense', function(source, cb)
local success = exports['ata_dmvschool_v2']:GiveLicenseToPlayer(source, 'boat')
cb(success)
end)Remove License From Player
Check All License
Last updated