Hi everyone, in my SWEP:Holster() function, I have this right at the top:
net.Start( "holster" )
net.Send( self.Owner )
It generates the error:
[CODE][ERROR] lua/weapons/weapon_predator/shared.lua:286: attempt to call field 'Send' (a nil value)
1. unknown - lua/weapons/weapon_predator/shared.lua:286[/CODE]
Although the actual code and stuff works.
[CODE]net.Receive("holster",function()
allowbinoc = false
end)[/CODE]
How can I stop this error? It's technically not an error, but it would be annoying for it to keep popping up.
[editline]12th August 2013[/editline]
Nevermind, silly me. It's also a client function :)
Can't use net.send in a client function.
Sorry, you need to Log In to post a reply to this thread.