π Custom Notifications
π Notifications
Easily adapt the script to your server's default notification script (like okokNotify, qb-notify, etc.) by modifying the bridge here.
function notify(message)
Exit.Functions.Notify(getMessage(message))
end
function getMessage(message)
if not Exit.Locale[Exit.Language] then return message end
return Exit.Locale[Exit.Language][message] or message
end
function DrawText3D(x, y, z, text)
SetTextScale(0.35, 0.35)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextEntry("STRING")
SetTextCentre(true)
AddTextComponentString(text)
SetDrawOrigin(x,y,z, 0)
DrawText(0.0, 0.0)
local factor = (string.len(text)) / 370
DrawRect(0.0, 0.0+0.0125, 0.017+ factor, 0.03, 0, 0, 0, 75)
ClearDrawOrigin()
end
function leftNotify(msg, thisFrame, beep, duration)
AddTextEntry('exit', msg)
if thisFrame then
DisplayHelpTextThisFrame('exit', false)
else
if beep == nil then beep = true end
BeginTextCommandDisplayHelp('exit')
EndTextCommandDisplayHelp(0, false, beep, duration or -1)
end
end