Ok so try that and tell me if HIT appear in your chatbox when you enter in the ColShape
function detectorDetect(thePlayer)
outputChatBox("HIT")
if ( getPlayerTeam(thePlayer) == "Admins")then
outputChatBox("Welcome!", thePlayer, 0, 255, 0)
else
setElementPosition(thePlayer, 247, 1833, 5)
setElementRotation(thePlayer, 269)
outputChatBox("You are not allowed to come here!", thePlayer, 255, 0, 0)
end
end
addEventHandler("onColShapeHit", detector, detectorDetect)
EDIT: I paste the code again
EDIT2: IDK why but the code in lua was bugged so I put it in text format