Driving School Integration
Read carefully!
If your Driving School script does not have open code to allow you to enter an export.
In such cases, we recommend contacting the author of the resource and requesting compatibility with our system.
Source Code: https://github.com/esx-framework/esx_dmvschool
RegisterNetEvent('esx_dmvschool:addLicense')
AddEventHandler('esx_dmvschool:addLicense', function(type)
local source = source
TriggerEvent('esx_license:addLicense', source, type, function()
TriggerEvent('esx_license:getLicenses', source, function(licenses)
-- VMS Documents V2 Integration --
-- VMS Documents V2 Integration --
exports['vms_documentsv2']:giveDocument(source, 'driving_license', nil, true)
-- VMS Documents V2 Integration --
-- VMS Documents V2 Integration --
TriggerClientEvent('esx_dmvschool:loadLicenses', source, licenses)
end)
end)
end)
Last updated
Was this helpful?