• Does a server-side function can be called by a client without networking ?
    9 replies, posted
I have "pdata" variables for every player and I'd like to add these to the scoreboard How can I do that ?
a SERVERSIDE function. Calling from the CLIENT without networking. How is that supposed to work? How do you want to tell the server to execute the function without networking?
I mean without net.Start() net.SendToServer()
Why? What's wrong with those functions? Any other networking method will be just as abuseable, its up to you, the addon maker, to ensure that it isn't on the server's end.
Yeah but it's not really optimized to call net.SendToServer at every scoreboard refresh There is probably another way to do it
why would you want to do net.SendToServer on EVERY scoreboard refresh? Why do you even want to send a message to the server on every scoreboard refresh... besides that, if im not wrong, the scoreboard does not update every frame like a hud. you open it and it loads once, and stays like it is until you close it and reopen it. So it wouldnt spam a huge amount of network messages. Still it would be alot on every scoreboard opening..
If somebody level up while your scoreboard is already opened, it won't refresh That's why i want to refresh the info every x second I'll try using net.SendToServer anyway, if anyone have a better way to do it, share it please
You should be using things like SetNWInt and stuff to network the level to clients.
to be honest thats not worth making alot of networks everytime...as soon as the player who had the scoreboard open reopens it he sees the level up on someone..no one has the scoreboard open for hours. More like a few seconds..what you are doing really is just wasted work and time
It's working !! Thank you so much !
Sorry, you need to Log In to post a reply to this thread.