Pedro Colto Posted May 12, 2015 Share Posted May 12, 2015 (edited) 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 May 12, 2015 by Guest Link to comment
n3wage Posted May 12, 2015 Share Posted May 12, 2015 guiSetVisible Evento: onClientPlayerWeaponSwitch Link to comment
Pedro Colto Posted May 12, 2015 Author Share Posted May 12, 2015 guiSetVisible Evento: onClientPlayerWeaponSwitch ok vou tentar ^^ Link to comment
Pedro Colto Posted May 12, 2015 Author Share Posted May 12, 2015 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
Pedro Colto Posted May 12, 2015 Author Share Posted May 12, 2015 Vllw pwla ajuda consegui criar, eu botei isso : if weapon == 34 then guiSetVisible(pedro3, false) guiSetVisible(pedro2, false) guiSetVisible(pedro1, false) dentro da função do bindkey ai funcionou vllw ^^ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now