Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: busiarza
1. Praca busiarza
Witam, mam tu prac? busiarza i mam problem gdy? jak robi? 2 osoby t? prac? i jedna osoba wysi?dzie z autobusu(ko?czy prac?) to tamtej osobie te? znikaj? markery i blipy i musi zaczyna? od nowa
kod
Kod:

function onBusStopHit(hitPlayer)
if not hitPlayer == client then return end
triggerServerEvent("bus_finish",client,client)
if isElement(blip) then destroyElement(blip) end
if isElement(marker) then
removeEventHandler("onClientMarkerHit",marker,onBusStopHit)
destroyElement(marker)
end
end

addEventHandler("onClientVehicleExit",rootElement,
function ()
if isElement(marker) then
removeEventHandler("onClientMarkerHit",marker,onBusStopHit)
destroyElement(marker)
end
if isElement(blip) then destroyElement(blip) end
end)
[/code]