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)