Framework & license integration
Framework setup
ESX uses the identity fields on the users table; the bridge can be enabled when appropriate. QB/Qbox use character data and persistent citizenid. The external character flow can integrate with supported spawn/appearance resources; check for conflicts before changing existing onboarding.
License sources
- ep_driving: read/write ep_driving_licenses, provided by EP-DrivingSchool.
- framework: uses supported framework information; ESX writes to mapped user_licenses types.
- custom: implement the server-side editable hooks.
Custom license integration
server/server_editable.lua defines EPLicenseEditable.getCustomLicenses(playerSource, owner, framework), grantCustomLicense(playerSource, owner, category, framework), revokeCustomLicense(playerSource, owner, categories, framework) and getVrpLicenses(playerSource, owner). The shipped custom functions return empty data or false until implemented. Do not enable a custom provider without implementing and testing it.
Category mapping
Config.LicenseIntegration = { -- License source: ep_driving, framework, or custom; custom integration is in server/server_editable.lua.
source = 'ep_driving', -- License source: ep_driving, framework, or custom.
externalDateText = 'Behaald',
mapping = {
a = { 'drive_bike' },
b = { 'drive' },
be = { 'drive_trailer' },
c = { 'drive_truck' },
ce = { 'drive_truck_trailer' },
d = { 'drive_bus' },
kvb1 = { 'boat_kvb1', 'boat' },
kvb2 = { 'boat_kvb2' },
ppl = { 'flight_ppl' },
military = { 'flight_military' },
aerobatics = { 'flight_aerobatics' },
ppl_h = { 'flight_ppl_h' },
cpl_h = { 'flight_cpl_h' }
}
}EP-DrivingSchool
Start both resources on the same database. Keep ep_driving as the source for shared qualifications. QB/Qbox DrivingSchool writes directly to ep_driving_licenses; ESX can call the Identify export or write the database fallback. Verify one passed exam, one card purchase and a revocation on a test player.