well i think it should work now
cuz u said the team name is "Gen" not "gen"
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()),
function ()
local aTimer=setTimer ( genPayDay, 10000, 0 )
end
)
function genPayDay()
for i, player in ipairs(getElementsByType("player")) do
local theTeam=getPlayerTeam(player)
if theTeam then
if getTeamName(theTeam)=="Gen" then
outputChatBox ( "*------------ payday ------------", player, 0, 255, 0)
outputChatBox ( "*text1", player, 0, 255, 0)
outputChatBox ( "*text2", player, 0, 255, 0)
outputChatBox ( "*text3", player, 0, 255, 0)
givePlayerMoney ( player, 500 )
end
end
end
end