you can use "setTimer" and set loop at 0 after setting time after that specific time it get triggger
Example : setTimer ( function()
outputChatBox ( "text!" )
end, 5000, 0 )
this text come after each 5 sec just change it acc to your time.
2nd
you can use this i think
function getPlayerFromlName(thePlayerName)
local thePlayer = getPlayerFromName(thePlayerName)
if thePlayer then
return thePlayer
end
for _,thePlayer in ipairs(getElementsByType("player")) do
if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then
return thePlayer
end
end
return false
end
function showGUI(sourcePlayer, commandName, thePlayerName)
if ( hasObjectPermissionTo (sourcePlayer, "command.ban", true ) ) then
if (thePlayerName) then
targetPlayer = getPlayerFromParticalName(tostring(thePlayerName))
triggerClientEvent(targetPlayer, "eventName", rootElement)
else
outputChatBox("Error", sourcePlayer, 255,255,255,true)
end
end
end
hope it will work i didnt tested