Witam, zn?w mam podobny problem m?cz? si? z nim do?? d?ugo, nie znam si? za bardzo na lua a chcia?bym zrobi? skrypt kt?ry mianowicie sprawdza element date przyk?adowo
Nie potrzebnie dalem niektore funkcje, przepraszam.
Oto naprawiony kod:
local Przejazd = createMarker ( 956.31659, -1449.06714, 13.12118, "cylinder", 1.5, 255, 255, 0, 170 )
function MarkerHit( hitElement, matchingDimension )
if hitElement and matchingDimension then
if getElementType(hitElement) == 'vehicle' then
if getElementData(hitElement, "vehicle:duty") == 'police' then
setElementPosition(hitElement, 989.89990,-1447.23401,13.17295)
end
end
end
end
addEventHandler( "onMarkerHit", Przejazd, MarkerHit )
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach