Skip to main content

ESX

Steps

ox_inventory

Add

ox_inventory -> data -> items.lua
    ['id_card'] = {
label = 'ID Card',
weight = 0,
stack = false,
close = true,
description = "Your Description",
client = {image = 'idcard.png'}
},
['driver_license'] = {
label = 'Drivers License',
weight = 0,
stack = false,
close = true,
description = "Your Description",
client = {image = 'driverlicense.png'}
},
['weaponlicense'] = {
label = 'Weapon License',
weight = 0,
stack = false,
close = true,
description = "Your Description",
client = {image = 'weaponlicense.png'}
},
['lawyerpass'] = {
label = 'Lawyer Pass',
weight = 0,
stack = false,
close = true,
description = "Your Description",
client = {image = 'lawyerpass.png'}
},

esx_multicharacter

Replace

    local newCharacters = {}
AddEventHandler('esx:playerLoaded', function(source, xPlayer)
if not newCharacters[source] then return end
newCharacters[source] = nil
Wait(5000)
exports['um-idcard']:CreateMetaLicense(source, 'id_card')
end)

AddEventHandler('esx_identity:completedRegistration', function(source, data)
TriggerEvent('esx:onPlayerJoined', source, PREFIX..awaitingRegistration[source], data)
awaitingRegistration[source] = nil
ESX.Players[GetIdentifier(source)] = true
newCharacters[source] = true
end)

esx_dmvschool

Replace

esx_dmvschool -> server -> main.lua -> "esx_dmvschool:addLicense"
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)
exports['um-idcard']:CreateMetaLicense(source, 'driver_license')
TriggerClientEvent('esx_dmvschool:loadLicenses', source, licenses)
end)
end)
end)

um-idcard-menu

/giveitem id id_card 1

Don't use giveitem for cards, use this instead

https://github.com/alp1x/um-idcard-menu