Config Client

```lua
ESX, QBCore = nil, nil

Citizen.CreateThread(function()
    if Config.Framework == 'ESX' then
        while ESX == nil do
            TriggerEvent(Config.GetSharedObjects, function(obj)
                ESX = obj
            end)
            Citizen.Wait(100)
        end
    elseif Config.Framework == 'QBCORE' then
        while QBCore == nil do
            TriggerEvent(Config.GetSharedObjects, function(obj)
                QBCore = obj
            end)
            if QBCore == nil then
                QBCore = exports[Config.ResourceName]:GetCoreObject()
            end
            Citizen.Wait(100)
        end
    elseif Config.Framework == "LEGACY" then 
        ESX = exports["es_extended"]:getSharedObject()
    end
end)

function CLNotify(type, text)
    if Config.Notify == "rvl_notify" then
        exports["rvl_notify"]:DoNotify(type, text)
    elseif Config.Notify == "other" then
        -- // If you want to use your own notification, post it here!
    end
end

-- // If you want to change camera positions
function CameraPointPet()
    ListCamera = CreateCam("DEFAULT_SCRIPTED_CAMERA", true)
    SetCamCoord(ListCamera, 561.19, 2750.03, 42.88)
    PointCamAtCoord(ListCamera, 561.19, 2750.03, 42.88)
    SetCamRot(ListCamera, -25.0, 10.0, 103.0)
    RenderScriptCams(true, false, 1, true, true)
    ClearAreaOfPeds(561.19, 2750.03, 42.88, 2.0, false)
    FreezeEntityPosition(PlayerPedId(), true)
end

```

Last updated