Pedro Colto Posted May 12, 2015 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
Pedro Colto Posted May 12, 2015 Author Posted May 12, 2015 guiSetVisible Evento: onClientPlayerWeaponSwitch ok vou tentar ^^
Pedro Colto Posted May 12, 2015 Author 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
Pedro Colto Posted May 12, 2015 Author 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 ^^
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