Jump to content

Ventas de autos.


Chaz-CR

Recommended Posts

Posted

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!

430x73_338AC4_FFFFFF_000000_000000.png

||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons||

http://facebook.com/AoBMTA - Fanpage

Posted

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 

430x73_338AC4_FFFFFF_000000_000000.png

||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons||

http://facebook.com/AoBMTA - Fanpage

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...