SaNK1ng Posted May 8, 2017 Posted May 8, 2017 (edited) Estou criando um server de rpg e hoje coloquei um hud e um radar mas quando eu saio e entro no server o radar e hud do gta original voltam por cima dos outros. Ja tentei de tudo e nao consegui arrumar isso. Me ajudem pfv Edited May 8, 2017 by SaNK1ng
DNL291 Posted May 8, 2017 Posted May 8, 2017 Use: onPlayerJoin setPlayerHudComponentVisible Please do not PM me with scripting related question nor support, use the forums instead.
SaNK1ng Posted May 8, 2017 Author Posted May 8, 2017 (edited) Sou novato na programação lua , uma ajuda detalhada seria melhor para mim. Edited May 8, 2017 by SaNK1ng
DNL291 Posted May 9, 2017 Posted May 9, 2017 local c = { "ammo", "armour", "breath", "clock", "health", "money", "radar", "weapon", "wanted" } addEventHandler( "onPlayerJoin", root, function() for i=1, #c do setPlayerHudComponentVisible(source, c[i], false) end end ) Se algum desses componentes do HUD não precisar ser oculto é só editar o código e remover. Please do not PM me with scripting related question nor support, use the forums instead.
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