Daily Game Tips [Mythic]

To install you need:

  • Mythic Notify or change the exports[‘mythic_notify’] line to what you want
  • a Brain

Install:
Code is self-explanatory (add on to your client or server file, pfft whatever you please)
If you somehow optimized the code, congrats! :tada:


RegisterCommand('tips', function()
	if tips then
		tips = false
		exports['mythic_notify']:SendAlert('inform', "Tips are disabled", 8000)

	else
		tips = true
		exports['mythic_notify']:SendAlert('inform', "Tips enabled", 8000)

	end
end, false)

local tips = {
	'tip1',
	'tip2',
	'to use this u need a brain'
	
}
exports['mythic_notify']:SendAlert('error', "Daily Game Tips can be disabled using /tips", 10000)
-- main thread
Citizen.CreateThread(function()
	while true do
		if tips then
			-- TriggerClientEvent('chatMessage', -1, '', { 255, 255, 255 }, messages[math.random(#messages)]) --'^2* ' ..  ' This is a test.'
			exports['mythic_notify']:SendAlert('inform', tips[math.random(#tips)], 4000)
			-- print('send')
			Wait(600000) -- 10 minutes
		end
	end
end)
2 Likes

I love this, thank you very much!

1 Like