Accessible code

-- here you can put your notifications that you have on server

-- msg: message that will be shown 
-- type: success and error

RegisterNetEvent('uniq_vmp:notify', function(msg, type)
    lib.notify({
        description = msg,
        type = type
    })
end)


-- https://overextended.dev/ox_lib/Modules/Interface/Client/skillcheck
if Config.VehicleStealing then
    function StartHack()
        local success = lib.skillCheck({'hard'}, {'w', 'a', 's', 'd'})

        return success
    end
end

function OpenManageEmployeesMenu()
    if IsESX() then
        TriggerEvent('esx_society:openBossMenu', GetJob(), function(data, menu)

		end, { wash = false }) -- disable washing money
    elseif IsQBCore() then
        TriggerEvent('qb-bossmenu:client:OpenMenu')
    end
end


local qs = GetResourceState('qs-vehiclekeys'):find('start')
local qb = GetResourceState('qb-vehiclekeys'):find('start')

function GiveKeys(vehicle, plate)
    if qs then
        exports['qs-vehiclekeys']:GiveKeys(plate, vehicle, false)
    elseif qb then
        TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
    end
end

Last updated