Client code and client console print
net.Start("RequestAvailableWeapons")
net.WriteInt(self.myRole, 4)
print("myRole DEBUG - ", self.myRole)
net.SendToServer()
myRole DEBUG - 8
Server code and server console print
net.Receive("RequestAvailableWeapons", function(len, ply)
local plyRole = net.ReadInt(4)
local availableWeaponsTable = {}
print(plyRole)
--More stuff done underneath but cut for length's sake
end)
0
What’s going on here? How come the number is coming in as 0?