You have problem with line 4, because no function called like this.
Try this:
function enter (thePlayer, dim)
if getElementType(thePlayer) == "player" then
if not isPedInVehicle(thePlayer) and dim then
if (getPlayerMoney(thePlayer)>= 100) then
takePlayerMoney(thePlayer, 100)
setElementInterior(thePlayer, 3, 834.66796875, 7.431640625, 1004.1870117188)
else
outputChatBox("#ff0000You Don't Have Enough Money!",thePlayer,255,255,255,true)
end
end
end
end
addEventHandler("onMarkerHit",markerJoin,enter)