Jump to content

Client variable


RaccoonAttack

Recommended Posts

Posted

Good day, comrades!

I have a little security question about Client variable. For example, there are two players online and one of them triggers server event, handler function of this event uses Client variable. Can the player somehow replace his Client variable with another player's Client variable?

Posted

The client variable is set based upon the player's (or rather the network packet's) IP. This IP cannot be spoofed easily as a handshake is performed when opening the connection to the server.

client is much more secure in contrast to the source variable as the source variable gets passed via triggerServerEvent.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...