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