Problem ch?opaki mam z tym ?e przy wje?dzie w marker nic si? nie dzieje
function podniessmieci()
if source ~= localPlayer then
return
end
if isPedInVehicle (localPlayer, markerdostawa) then
outputChatBox("Jeste? w markerze",255,255,255)
end
end
addEventHandler ( "onClientMarkerHit", getRootElement(),podniessmieci)
A czemu mi teraz pokazuje sie w tym markerze i 2 to samo
local markerprac = createMarker( 2350.7060546875,-12.084959030151,26.484375, "cylinder", 2, 255, 255, 0 , 125 )
function wlaczGui(gracz, md)
if gracz ~= localPlayer then
return
end
if isPedInVehicle (gracz, markerprac) then
outputChatBox("Aby rozpocz?? prace nie mo?esz siedzie? w pojzedzie!",255,255,255)
else
outputChatBox("1111111111111",255,255,255)
guiSetVisible(gui.win, true)
showCursor(true, true)
end
end
addEventHandler ( "onClientMarkerHit", getRootElement(),wlaczGui)
function podniessmieci(gracz, md)
if gracz ~= localPlayer then
return
end
if isPedInVehicle (gracz, markerdostawa) then
outputChatBox("Jeste? w pojezdzie",255,255,255)
--setElementFrozen(smieciara, true)
else
outputChatBox("Nie jeste? w pojezdzie",255,255,255)
end
end
addEventHandler ( "onClientMarkerHit", getRootElement(),podniessmieci)
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