JagleW Posted March 12, 2018 Posted March 12, 2018 How can I hide nicks on freeroam? I want to record a machinima and idk how hide nicks on freeroam.
#Heshan||eUNLOCK|| Posted March 24, 2018 Posted March 24, 2018 players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) try this
Discord Moderators Pirulax Posted March 29, 2018 Discord Moderators Posted March 29, 2018 (edited) @JagleW Hello, this will work until someone joins after the resource started.Use this code instead: addEventHandler ( "onResourceClienttart", resourceRoot, function() for _,player in ipairs (getElementsByType ("player")) do setPlayerNametagShowing (player, false) end end) Also, this is the worst code i've ever seen: On 3/24/2018 at 14:21, #Heshan||eUNLOCK|| said: players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) try this Why? First of all: Why did you just put that 'players' into a variable? Why did you put the eventhandler on root?This will cause higher CPU usage, since the function will be called every time a resource starts. Its on server-side. Edited March 29, 2018 by Pirulax
JagleW Posted March 29, 2018 Author Posted March 29, 2018 (edited) @Pirulax first script is better or what? Edited March 29, 2018 by JagleW
Discord Moderators Pirulax Posted March 29, 2018 Discord Moderators Posted March 29, 2018 4 minutes ago, JagleW said: @Pirulax first script is better or what? My script is the better one, since it runs on client-side, and will hide every nametag.
JagleW Posted March 29, 2018 Author Posted March 29, 2018 @Pirulax Thanks for help Can You help mi with this?
Discord Moderators Pirulax Posted March 29, 2018 Discord Moderators Posted March 29, 2018 I dont think so, im not an expert with such things, sorry. Consider dropping a like, if i helped you! Use code tags (<>) please. Use /debugscript 3, please. Thanks.
#Heshan||eUNLOCK|| Posted April 2, 2018 Posted April 2, 2018 On 3/29/2018 at 22:25, JagleW said: Working. Thx welcome buddy :3
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