Auto Send Messages

Could anyone help me with possible code of sending chat messages (kind of like adverts) every so often? Like every 30 mins.

Thank you in advance!!

I am positive there is already a script for that. It is one of Scammers scripts if im correct, check his compilation

here you go

helptimers = {help_1 = 0}

function DrawHelp(text,isloop,isbeep,isshape)
	if not IsHelpMessageOnScreen() then
		SetTextComponentFormat("STRING")
		AddTextComponentString(text)
		DisplayHelpTextFromStringLabel(0, isloop, isbeep, isshape)
	end
end

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(1000)
		if helptimers.help_1 < 300 then
			helptimers.help_1 = helptimers.help_1+1
		else
			helptimers.help_1 = 0
			DrawHelp("~BLIP_INFO_ICON~ Press ~INPUT_INTERACTION_MENU~ to access player menu",0,1,-1)
			-- SHOW YOUR MESSAGE
		end
	end
end)

1 Like

Appreciate it mark, but I figured it out. :slight_smile: