๐Ÿ“–Integrations

Resource Integrations guide with other resources.

Client Side:

Unlocked File Path:

fs_clothingitem/client/unlocked.lua

unlocked.lua
RegisterNetEvent('fs_clothingitem:notify')
AddEventHandler('fs_clothingitem:notify', function(msg)
    lib.notify({
        title = 'Cloting Item',
        description = msg,
        type = 'info',
        icon = "fa-solid fa-shirt",
        duration = 5000,
    })
end)
 
function IsPlayerhandsup(ped)
    return IsPedCuffed(ped)
    or IsEntityPlayingAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 3)
    or IsEntityPlayingAnim(ped, 'missminuteman_1ig_2', 'handsup_enter', 3)
    or IsEntityPlayingAnim(ped, 'random@mugging3', 'handsup_standing_base', 3)
end

function minigame()
    local success = lib.skillCheck({ 'easy', 'easy', 'easy' }, { 'a', 's', 'd', 'w' })
    return success
end

function isPlayerDead(ped, playerserverid)
    return IsPedDeadOrDying(ped, true)
end

function PlayAnim(ped, anim, dict, time)
    if Config.UseProgressbar then
        lib.progressCircle({
            duration = time,
            position = 'bottom',
            useWhileDead = false,
            canCancel = false,
            disable = {
                car = true,
            },
            anim = {
                dict = anim,
                clip = dict
            },
        })
    else
        RequestAnimDict(anim)
        while (not HasAnimDictLoaded(anim)) do Wait(0) end
        TaskPlayAnim(ped, anim, dict, 9.0, 10.0, time, 0, 1, true, true, true)
    end
end

Last updated