I did a simple modal with the guieditor (dxDrawText,dxDrawLine,dxDrawRectangle).
And I want to show that modal when player hit the marker and hide when leaves the marker.
This works, but shows the modal only for a second... how can I keep show the modal as long as the player is in the marker?
local szuretMarker = createMarker(-1003.563659668, -1249.7315673828, 130.26364135742, 'cylinder', 2.0, 255, 0, 0, 150)
function MarkerHit( hitElement, matchingDimension )
local elementType = getElementType( hitElement )
triggerClientEvent ( "szuret", getRootElement(), szureteles )
end
addEventHandler( "onMarkerHit", szuretMarker, MarkerHit )