Accessible code

Notification = function (title, description, type)
    -- types are success and error
    lib.notify({
        title = title,
        description = description,
        type = type
    })
end

RaidMinigame = function ()
    local success = lib.skillCheck({'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'}, {'w', 'a', 's', 'd'})
    return success
end

function wardrobeMenu()
    -- TriggerEvent('illenium-appearance:client:openOutfitMenu')
    exports['fivem-appearance']:openWardrobe()
end

function openStash(stashId, stashWeight, stashSlots)
    if Config.inventoryType == 'ox' then
        exports.ox_inventory:openInventory('stash', stashId)
    elseif Config.inventoryType == 'qb' or Config.inventoryType == 'lj' or Config.inventoryType == 'ps' or Config.inventoryType == 'qs' then
        TriggerEvent("inventory:client:SetCurrentStash", stashId)
        TriggerServerEvent("inventory:server:OpenInventory", "stash", stashId, {
            maxweight = stashWeight,
            slots = stashSlots,
        })
    elseif Config.inventoryType == 'core' then
        TriggerServerEvent('core_inventory:server:openInventory', stashId, 'stash')
    end
end

Last updated