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: pojzadu
1. Nie zamraża pojzadu
S:

[lua]
local marker_praca = createMarker(-127.27121734619,1141.2320556641,19.7421875 -1, "cylinder", 1.5, 0, 0, 0, 200)

createBlipAttachedTo ( marker_praca, 52 )

local tempCol = createColSphere ( -140.96928405762,1132.837890625,19.749988555908 +0.5, 6.0 )


function wejscie(hitElement)

if getElementType(hitElement) == "player" then else return end

local pojazd = createVehicle ( 515, -140.96928405762,1132.837890625,19.749988555908 +0.5 )
setVehicleHandling(pojazd, "steeringLock", 55.0 )
trailer = createVehicle ( 435, -140.96928405762,1132.837890625,19.749988555908)
attachTrailerToVehicle ( pojazd, trailer )
warpPedIntoVehicle(hitElement, pojazd)
triggerClientEvent("praca", hitElement)

end
addEventHandler("onMarkerHit", getRootElement(), wejscie)

addEvent("zamrozenie", true)
addEventHandler('zamrozenie', getRootElement(),
function()
setTimer ( function()
setElementFrozen ( pojazd, true )
givePlayerMoney(player, math.random(10, 20))
end, 5000, 1 )
end
)
[/lua]

C:

[lua]
local pozycja = {
{267.00396728516,1366.4020996094,10.5859375},
{247.58186340332,1396.7586669922,10.5859375},
}

addEvent("praca", true)
addEventHandler("praca", root, function()

local x = math.random(1, #pozycja)
local marker = createMarker ( pozycja[x][1], pozycja[x][2], pozycja[x][3], "cylinder", 4.5, 0, 0, 0, 200 )
createBlipAt...