WaspNetwork Posted February 1, 2021 Posted February 1, 2021 (edited) Hello, I was wondering why I am getting null list of nametags? https://wiki.rage.mp/index.php?title=Render(JS)_Tick(CSharp) using System; using System.Collections.Generic; using RAGE; using RAGE.Game; using RAGE.Ui; namespace Test { public class Class1 : Events.Script { public Class1() { Nametags.Enabled = true; // doesn't work if I switch it to false either Events.Tick += OnUpdate; } private void OnUpdate(List<Events.TickNametagData> nametags) { if (nametags != null) Chat.Output(nametags.Count.ToString()); else Chat.Output("Still null"); } } } Edited February 1, 2021 by WaspNetwork
Kopra Posted February 1, 2021 Posted February 1, 2021 I think that you need to disable default nametags or else it won't send them to tick.
sograb Posted July 23, 2022 Posted July 23, 2022 Hi @WaspNetwork Did you find an issue to your problem ? I'm currently in the same situation. Thanks in advance!
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