Witam, chcia?bym zmieni? w tej pracy to, ?e gdy wysi?d? z pojazdu podczas pracy to zostan? przeteleportowany na dane kordy oraz gdy ju? przejad? przez ostatni punkt, aby mnie teleportowa?o w dane kordy (ja juz sobie ustale w jakie). Co musz? dopisa? oraz gdzie lub prosz? to ju? dopisa?. Z g?ry dzi?kuje daje piwa za pomoc
[lua]local b=createElement("text")
setElementData(b,"name","PRACA: Kierowca Street-ViewnZAROBEK:nOD 75PLN-150PLNnOPIS: Identyfikowanie mapy")
setElementPosition(b,-1990.74, 957.88, 45.45)
local zone = createColSphere(-1986.58, 955.03, 45.54,3 )
createBlip(-1984.40, 953.92, 45.45, 46,2,0,0,0,0,0,275)
local m1 = createMarker(-1990.74, 957.88, 45.45-1, "cylinder", 1.5, 35, 142, 35)
vehs = {}
local code = "StreetView"
veh_obj = {}
function removePreviousVehicles(plr)
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
local sby = getElementData(v, "zrespilGracz")
if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then
destroyElement(v)
end
end
end
addEventHandler("onMarkerHit", m1, function(el, md)
if getElementData(el, "vehicle_job_owner2") then
outputChatBox("Wyst?pi? b??d #6969, zg?o? si? do CEO!", el)
return
end
if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
if getElementData... |