UserToDelete Posted May 19, 2015 Share Posted May 19, 2015 (edited) El problema es, la distancia de renderizado que no se puede cambiar, seria util una funcion para eso setNametagShowingDistance() o similar function check () for k,source in ipairs(getElementsByType("player")) do setPlayerNametagText(source, getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) end end addEventHandler("onClientRender", root, check) Edited May 19, 2015 by Guest Link to comment
Tomas Posted May 19, 2015 Share Posted May 19, 2015 Optimizado? Enserio? ................................................... Link to comment
UserToDelete Posted May 19, 2015 Author Share Posted May 19, 2015 Optimizado? Enserio? ................................................... Hmm, como harias? Link to comment
Tomas Posted May 19, 2015 Share Posted May 19, 2015 function setNametag ( ) setPlayerNametagText(source, getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) end addEventHandler("onClientPlayerJoin", root, setNametag) addEventHandler("onClientPlayerChangeNick", root, setNametag) setPlayerNametagText(localPlayer, getPlayerName(localPlayer):gsub("#%x%x%x%x%x%x", "")) Ya no hay necesidad de repetir infinitas veces por segundo un script que le cambia A TODOS los jugadores el nametag ( en vez de simplemente cambiárselo al localPlayer ) 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