AWS DEVELOPMENT / DOCUMENTATION

Your server. Our expertise.

Everything you need to install, configure and build.

94 guides • 11 resources • Always here to help
Documentation/πŸ”” Custom Notifications
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.

πŸ”” 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