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: gui/handling
1. Refresh gui/handling w cliencie
Witam, w trakcie robienia gui natrafi?em na problem z kt?rym nie mog? sobie poradzi?, a dok?adnie chodzi o od?wie?anie tekstu w gui oraz o getVehicleHandling po stronie clienta. Chcia?bym zrobi? ?e po klikni?ciu w button handling odrazu pojawia? si? w tabeli

np
jak tu jest 1200
[img]https://i.imgur.com/OlsZHOK.png[/img]
po klikni?ciu w button by?o 1300.

Eventy od ustawienia handlingu mam.

Domy?lam si? ?e trzeba zrobi? eventy tylko nie wiem jakie i w jaki spos?b
[lua]marker = createMarker(2482.35718, -1658.45166, 13.33557, 'cylinder', 2.0, 255, 170, 0, 150)

function hit(hit)
if getElementType(hit) ~= "player" then return end
local veh = getPedOccupiedVehicle(hit)
if not veh then return end
if hit == localPlayer then
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
end
addEventHandler("onClientMarkerHit", marker, hit)

GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(500, 179, 590, 700, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.83)

Gui3 = guiCreateLabel(240, 80, 150, 100, "Masa pojazdu: 1200kg", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(255, 150, 150, 100, "Ilo?? bieg?w: 5", false, GUIEditor.window[1])
Gui3 = guiCreateLabel(215, 220, 190, 100, "Sztywno?? za...