AWS DEVELOPMENT / DOCUMENTATION

Your server. Our expertise.

Everything you need to install, configure and build.

94 guides • 11 resources • Always here to help
Documentation/πŸŒ‰ Shared Integration
About resource versions

These guides include the original resource names. Use the folder and SQL names supplied with your downloaded version. A renamed AWS package may differ from the original EXIT release.

πŸŒ‰ Shared Integration

πŸŒ‰ Shared Integration

The core shared bridges logic is left thoroughly open-source so you can integrate custom StateBags or adapt variables dynamically to your server framework.

LANG = setmetatable(config.langs[config.lang], {
    __index = function(object, k)
        local value = rawget(object, k)
        if value == nil then
            local text = string.format("[%s] %s", k, "Missing translation")
            pcall(function() assert(false, text) end)
            rawset(object, k, text)
            return text
        end
        return value
    end
})

if IsDuplicityVersion() then
    function Notify(src, msg, notifType, time)
        TriggerClientEvent("exit-pedscaller:notify", src, msg, notifType, time)
    end
else
    function Notify(msg, notifType, time)
        lib.notify({
            title = msg,
            type = notifType or "info",
            position = "top-right",
            duration = time or 5000
        })
    end

    RegisterNetEvent("exit-pedscaller:notify", Notify)
end