try this and tell me what output's in the chat:
function beachTurf(player)
if (getElementData( player, "gang" )) then
local playerGang = getElementData( player, "gang" )
if (playerGang) then
outputChatBox('executed', player, 255, 255, 255)
else
outputChatBox('failed',player,255,255,255)
end
local r, g, b = exports [ "gang_system" ]:getGangColor ( playerGang )
setRadarAreaFlashing ( beachTurfA, true )
exports ["guimessages"] : outputServer ( player, "You entered the turf!" , 255, 0, 0 )
beachturfTimer = setTimer ( function(player)
setRadarAreaColor ( beachTurfA, r, g, b, 100 )
exports ["guimessages"] : outputServer ( player, "Congratulations,your gang take this turf!" , 255, 0, 0 )
givePlayerMoney ( player, 2000 )
setRadarAreaFlashing ( beachTurfA, false )
end, 10000, 1 )
end
end
addEventHandler ( "onColShapeHit", beachTurfC, beachTurf )