Jump to content

A small help


Recommended Posts

https://wiki.multitheftauto.com/wiki/GuiCreateButton

https://wiki.multitheftauto.com/wiki/Gu ... taticImage

Match up X,Y, Width, Height.

local x,y , width, height = 0,0,0,0 -- CHANGE 
  
function button () 
local button = guiCreateButton ( x,y , width, height,"", false, menu) 
guiSetAlpha (button ,0) 
addEventHandler ( "onClientGUIClick", button , setImage, false ) 
end 
  
path = {"Path1","Path2","Path3"} 
  
function setImage () 
destroyElement(static)  
if patha > (#path-1) then  
patha = 0 
else 
patha = patha+1 
end 
  
static = guiCreateStaticImage (x,y , width, height,path[patha], false,menu) 
end 
  

Questions?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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