π 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