Adding to radialmenu

Add this to Config.MenuItems

    [2] = {
        id = 'documents',
        title = 'Documents',
        icon = 'id-card',
        items = {
            {
                id = 'id_card',
                title = 'ID Card',
                icon = 'id-card',
                type = 'cmd',
                event = '+id_card',
                shouldClose = true
            },
            {
                id = 'driving_card',
                title = 'Driving License',
                icon = 'car',
                type = 'cmd',
                event = '+driverlicense',
                shouldClose = true
            },
            {
                id = 'boat_card',
                title = 'Boat License',
                icon = 'ship',
                type = 'cmd',
                event = '+boatlicense',
                shouldClose = true
            },
            {
                id = 'flying_card',
                title = 'Fly License',
                icon = 'helicopter',
                type = 'cmd',
                event = '+flyinglicense',
                shouldClose = true
            },
            {
                id = 'id_card',
                title = 'Gun Lcense',
                icon = 'gun',
                type = 'cmd',
                event = '+weaponlicense',
                shouldClose = true
            },
        }
    },

Add this to Config.Commands

    ["+id_card"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_card")
        end,
    },
    ["+driverlicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_drive")
        end,
    },
    ["+weaponlicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_weapon")
        end,
    },
    ["+boatlicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_boat")
        end,
    },
    ["+flyinglicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_fly")
        end,
    },

Last updated