Hey there,
I'm trying to award players with some money after the round ends, if they're part of the winning team. I'm using the following, but for some reason, it isn't called:
hook.Add( "RoundEndWithResult", "GiveDollars4", function( result, resulttext )		
	if type( result ) == "number" then -- the result is a team ID
		for k,v in pairs(team.GetPlayers(result)) do -- result should print team numnber,
			if v:IsUserGroup("vip") then
				v:ChangeDollars(20)
				v:ChatPrint("You won, you have gained 20 dollars for winning.")
			else
				v:ChangeDollars(10])
				v:ChatPrint("You won, you have ginned 10 dollars for winning.")
			end
		end
	else -- the result is a player
		if result:IsUserGroup("vip") then
			result:ChangeDollars(20)
			result:ChatPrint("You won, you have gained 20 dollars for winning.")
		else
			result:ChangeDollars(10)
			result:ChatPrint("You won, you have gained 10 dollars for winning.")
		end
	end	
end)
Does TTT use a different hook for round end?
The functions themselves do work, as when I call them outside of this hook, they work just fine.