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: zamraża
1. nie zamraża pojazdu podczas tuningu pojemności
Tak jak w tytule. Jak by kto? m?g? to prosz? o wys?anie naprawionego kodu.

b??dy z debugscripta: https://imgur.com/a/LjlUWAY

kod:
[lua]GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateStaticImage(330, 200, 405, 460, "elo.png", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.83)

GUIEditor.button[1] = guiCreateStaticImage(10, 25, 200, 65, "16.png", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")

GUIEditor.button[2] = guiCreateStaticImage(200, 25, 200, 65, "18.png", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")

GUIEditor.button[3] = guiCreateStaticImage(10, 100, 200, 65, "20.png", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")

GUIEditor.button[4] = guiCreateStaticImage(200, 100, 200, 65, "22.png", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")

GUIEditor.button[5] = guiCreateStaticImage(10, 175, 200, 65, "24.png", false, GUIEditor.window[1])
guiSetProperty(GUIEdit...
2. 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...