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: infopanel
1. Infopanel

    
function createInfo(text, x, y, z)
        
window = guiCreateWindow(0.28, 0.31, 0.49, 0.31, "", true)
        
guiWindowSetSizable(window, false)
        
memo = guiCreateMemo(0.04, 0.18, 0.92, 0.32, text, true, window)
        
guiMemoSetReadOnly(memo, true)
        
button = guiCreateButton(0.34, 0.75, 0.32, 0.21, "X", true, window)   
    
guiSetVisible(window, false) 
    
pickup = createPickup(x, y, z, 3, 1239, 0)
    
end


addEventHandler
("onClientGUIClick", root,
function(
el, md)
if 
source == button then
guiSetVisible
(window, false)
showCursor(false) 
end
end
)

addEventHandler('onClientPickupHit', root, function(el, md)
if 
el ~= localPlayer then return end
if source == pickup then
guiSetVisible
(window, true)
showCursor(true)
end
end
)


function 
test()
createInfo("TEST PANEL BY HAZ", 1474.4384765625, -1698.8046875, 14.046875)
end
addEventHandler
("onClientResourceStart", root, test)


to dzia?a 1bug jak dam 2razy createInfo to tworzy 2 pickupy ale jak wejdziemy w 1 to nie dziala dopiero to stworzone najpozniej dzia?a +
exports["hl_infopanel"]:createInfo("test", 1472.818359375, -1698.650390625, 14.046875)
i blad call failed to call hl_infopanel:createInfo[string "?"] dla pomocnika :piwo: :arrow: R*