Jump to content

[Ajuda] guiCreateStaticImage


Recommended Posts

olá, eu queria que estas imagens sumissem quando o player pegar uma arma exemplo a sniper id 34, quem poder ajudar eu agradeço

[lua pedro3 = guiCreateStaticImage(0.46, 0.30, 0.14, 0.21, ":guieditor/debugmonitor/center.png", true)    

        guiSetAlpha(pedro3, 0.80)

)[/lua]

Edited by Guest
Link to comment
guiSetVisible 

Evento: onClientPlayerWeaponSwitch

tentei criar desta forma:

function pedro100 ( ) 
    if getPedWeapon(getLocalPlayer()) == 34 then 
    guiSetVisible(pedro3, false) 
end 
end 
addEventHandler ( "onClientPlayerWeaponSwitch", root, pedro100 ) 

e tbm desta outra forma:

weapon = getPedWeapon( getLocalPlayer() ) 
function pedro100 ( ) 
    if weapon == 34 then  
    guiSetVisible(pedro3, false) 
end 
end 
addEventHandler ( "onClientPlayerWeaponSwitch", root, pedro100 ) 

tbm n funcionou

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...