Finding out whether a server is a VIP server

Hey,

Since the wiki’s having some issues, I can’t look it up myself. I saw some older posts saying to use game.VIPServerId and game.VIPServerOwnerId, but when I look in Object Explorer they don’t show up:

image

Are those properties deprecated, and if so, what should I use instead? Are PrivateServerId and PrivateServerOwnerId more or less equivalent?

You kind-of solved your own problem here. A VIP server will have a PrivateServerOwnerId value that’s not the default value of 0.

1 Like

Another question; does it preserve the behaviour of the older property with regards to reserved servers?

Well, just say:

if game.PrivateServerId == 0 then

The older properties function identically to the newer ones. But you shouldn’t utilize them anymore as they’re deprecated, and if you do use them, you should replace them with the non-deprecated equivalent.


This won’t work. PrivateServerId isn’t a number it is a string. The default value of which is simply a blank string with absolutely nothing as its content.

1 Like

Oh yeah, sorry, I’m getting this mixed up with PrivateServerOwnerId.