hi
i dont know a single thing about lua
i just copy lines from wiki and i want to ask does this work(i think not)
please help me fix bug(i am very noob at lua like a baby who just learned to say first word)
function marker()
local myMarker = createMarker(-2596.625, 579.358, 15.626, 'corona', 2.0, 255, 0, 0, 150) -- i make marker
function MarkerHit( hitElement, matchingDimension )
local elementType = getElementType( hitElement )
outputChatBox( elementType.." test", getRootElement(), 255, 255, 0 ) -- i dont know if this correct
fadeCamera(player, true, 0.5)
setTimer ( fadeCameraDelayed, 500, 1, source ) --i think this wrong too
end
addEventHandler( "onMarkerHit", myMarker, MarkerHit )