Chaz-CR Posted May 21, 2013 Share Posted May 21, 2013 Hola tengo un problema, tengo un script de venta de autos pero solo puedes comprar un auto y me gustaria poder comprar mas de uno y tambien mediante el panel poder spawnearlo en cualquier momento a la par mia, pues no se que parte del script poner porque es demasiado extenso y si alguno tendria la amabilidad de ayudarme personalmente le agradeceria, todo el script esta montado solo quiero el panel que me aparezcan los autos que compre! Link to comment
Chaz-CR Posted May 21, 2013 Author Share Posted May 21, 2013 aca una parte util local screenX, screenY = guiGetScreenSize() local width, height = 200, 200 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) local lp = getLocalPlayer() theWindow = guiCreateWindow(x,y,width,height,"Car Features",false) guiWindowSetSizable(theWindow,false) guiSetVisible (theWindow, false) spawnBut = guiCreateButton(0.0604,0.120,0.4,0.2,"Spawn",true,theWindow) engenieBut = guiCreateButton(0.0604,0.420,0.4,0.2,"Engenie",true,theWindow) lockBut = guiCreateButton(0.490,0.420,0.4,0.2,"Lock",true,theWindow) lightsBut = guiCreateButton(0.0604,0.720,0.4,0.2,"Lights",true,theWindow) destroyBut = guiCreateButton(0.490,0.120,0.4,0.2,"Destroy",true,theWindow) function resourceStart () bindKey ("F3", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (theWindow) if (visableornot == true) then guiSetVisible (theWindow, false) showCursor (false) end if (visableornot == false) then guiSetVisible (theWindow, true) showCursor (true) end end Link to comment
Recommended Posts