#Use ps-ui with qb-houserobbery

1 messages · Page 1 of 1 (latest)

vernal flume
#

This was requested by me as the old snippet didn't work, all credits go to (rody) on the qbcore discord channel.

qb-houserobbery\client\main.lua replace all with the below on lines 119 to 169.

    local ped = PlayerPedId()
    if math.random(1, 100) <= 85 and not IsWearingGloves() then
        local pos = GetEntityCoords(PlayerPedId())
        TriggerServerEvent("evidence:server:CreateFingerDrop", pos)
    end

    loadAnimDict('creatures@rottweiler@tricks@')
    TaskPlayAnim(PlayerPedId(), 'creatures@rottweiler@tricks@', 'petting_franklin', 8.0, 8.0, -1, 17, 0, false, false, false)

    TriggerServerEvent('qb-houserobbery:server:SetBusyState', cabin, currentHouse, true)
    FreezeEntityPosition(ped, true)
    IsLockpicking = true

    exports['ps-ui']:Circle(function(success)
        if success then
            ClearPedTasks(PlayerPedId())
            TriggerServerEvent('qb-houserobbery:server:searchFurniture', cabin, currentHouse)
            Config.Houses[currentHouse]["furniture"][cabin]["searched"] = true
            TriggerServerEvent('qb-houserobbery:server:SetBusyState', cabin, currentHouse, false)
            FreezeEntityPosition(ped, false)
            SetTimeout(500, function()
                IsLockpicking = false
            end)
        else
            ClearPedTasks(PlayerPedId())
            TriggerServerEvent('qb-houserobbery:server:SetBusyState', cabin, currentHouse, false)
            QBCore.Functions.Notify(Lang:t("error.process_cancelled"), "error", 3500)
            FreezeEntityPosition(ped, false)
            SetTimeout(500, function()
                IsLockpicking = false
            end)
        end
    end, 3, 10)
end```
faint berry
#

this still work? i tried, and its still doing the QB skyrim lock system

split basin