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: wyjeździe
1. Nie usuwa auta po wyjeździe z strefy.
Witam.
Podczas robienia pracy autobusy itp na potka?em na problem
Chcia?em ustawi? blokad? wyjazdu z miasta autem z pracy.
Stworzy?em colsphere ca?? t? p??kule i doda?em kordy do kodu.
B??du ?adnego nie sypie ale auta nie zabiera

Kod:

local strefa = createColSphere (-2135, 60, 50, 750) --- -2135, 60, 50
addEventHandler("onColShapeLeave", strefa, function(veh)
if getElementModel(veh) == model then
if getElementData(veh, "Przystanek") then
if getVehicleOccupant(veh) then
outputChatBox("Nie opuszczaj strefy przystank?w.", getVehicleOccupant(veh))
end
destroyElement(veh)
end
end
end)