Jump to content

wtf why resource dont work -- help


Carbonik

Recommended Posts

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) 

it dont work ;/

Link to comment

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

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...