https://wiki.multitheftauto.com/wiki/OnMarkerHit
addEventHandler ("onMarkerHit", getRootElement(),
function(hitElement, matchingDimension)
if (getElementType( hitElement ) == "player") then
if (source == shipManChatMarker) then
triggerClientEvent (hitElement, "viewInfoGUIWindow", hitElement, "Stary szalony facet\n\nHEJ HEJ!\nCo robisz na moim statku, \nNie zapraszalem cie!\nIdz stad!")
elseif (source == shipWomanChatMarker) then
triggerClientEvent (hitElement, "viewInfoGUIWindow", hitElement, "Stara baba z duzymi butami\n\nWitaj na naszym statku.\nProsze nie zepsuj niczego \nmoj maz jest bardzo rozdrazniony")
elseif (source == medicChatMarker) then
triggerClientEvent (hitElement, "viewInfoGUIWindow", hitElement, "Szczesliwy lekarz\n\nWitaj w naszym szpitalu.\nGdy bedziesz mocno ranny znajdziesz sie tu!\n\nDo zobaczenia!\n...ahh lubie operowac ludzi")
elseif (source == coureurChatMarker) then
triggerClientEvent (hitElement, "viewInfoGUIWindow", hitElement, "Pan Iwan Nadie\n\nWitaj na naszym stadionie.\nMozesz tu sie wyszalec! za zdobycie okregu\ndostaniesz 100$! Koszt wejscia 500$!\n\nPowodzenia, mysle ze zginiesz \"{SMILIES_PATH}/icon_smile.gif\" alt=\"\" title=\"Smile\" />.")
elseif (source == farmerChatMarker) then
triggerClientEvent (hitElement, "viewInfoGUIWindow", hitElement, "Jakis farmer\n\nPewnie myslisz na co tak patrze?\nSzatanisci sa tutaj, Modla sie do szatana w tych kregach!\n\nIdz w dol sciezka a tam bedzie grota, powodzenia!")
elseif (source == NeilArmstrongChatMarker) then
triggerClientEvent (hitElement, "viewInfoGUIWindow", hitElement, "Neil Armstrong\n\nWitam.\nJako pierwszy wyladowalem na ksiezycu, \nTo naprawde fascynujaca przygoda!\nSprobuj!")
end
end
end)
you joking? you forgot to add an event