Random error from net.send?

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:


[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

Although the actual code and stuff works.


net.Receive("holster",function()
allowbinoc = false
end)

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 :slight_smile:

Can’t use net.send in a client function.