_jvneczek
Wiek: 22 Na forum: 4325 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
Tak jak w temacie
Zrobi?em gui oparte o cegui aczkolwiek chcia?bym teraz zmieni? to pod normalne gui, wiem jak aczkolwiek nie do ko?ca.
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
rh = guiCreateWindow ( 282 , 559 , 220 , 184 , "Zawieszenie pneumatyczne" , false )
guiWindowSetSizable ( rh , false )
guiWindowSetMovable ( rh , true )
gora = guiCreateButton ( 9 , 23 , 200 , 61 , "Podwy?sz" , false , rh )
dol = guiCreateButton ( 9 , 103 , 200 , 61 , "Obni?" , false , rh )
guiSetVisible ( rh , false )
end
)
addEventHandler ( "onClientGUIClick" , resourceRoot , function( btn )
local veh = getPedOccupiedVehicle ( localPlayer )
if source == gora then
triggerServerEvent ( "rh:p" , root , veh )
elseif source == dol then
triggerServerEvent ( "rh:o" , root , veh )
end
end )
function patch ()
local veh = getPedOccupiedVehicle ( localPlayer )
if not veh then
if rh and ( guiGetVisible ( rh ) == true ) then
guiSetVisible ( rh , false )
end
end
end
addEventHandler ( "onClientRender" , root , patch )
function show ()
guiSetVisible ( rh , true )
end
addEvent ( "rhshow" , true )
addEventHandler ( "rhshow" , root , show )
fileDelete ( "c.lua" )
rh = guiCreateWindow ( 282 , 559 , 220 , 184 , "Zawieszenie pneumatyczne" , false )
Chc? zast?pi? dxdrawimage, a
gora = guiCreateButton ( 9 , 23 , 200 , 61 , "Podwy?sz" , false , rh )
dol = guiCreateButton ( 9 , 103 , 200 , 61 , "Obni?" , false , rh )
zamiast tego podstawi? dxdrawrectangle i ifmousein, aczkolwiek nie jestem pewny czy to wyjdzie, m?g?by kto? mi pom?c z tym?
Podpis
Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021