• I need help
    9 replies, posted
https://steamcommunity.com/sharedfiles/filedetails/?id=433932042 Hello, I'm trying to edit a addon for my server. (DarkRP - Skyrim Lockpicking ) But I have a problem. Here is the code: net.Start("lockpick_start") net.WriteInt( totalLockpicks, 1 ) net.Send(self.Owner) The Error: [ERROR] addons/lockpick/lua/weapons/lockpick.lua:230: attempt to call field 'Send' (a nil value)   1. unknown - addons/lockpick/lua/weapons/lockpick.lua:230 I already try to edit the net.Send and I look a lot of topic (I'm starter). But I don't find any way. Can you help me please ?
Make more descriptive topic name next time. You're making it on clientside. make if SERVER then
Ok Can you be more clear please ? Thanks for your quick answer
thats the clearest you can get...your file runs on client and server. make a if SERVER then check..
Ok It's Good thank you !! I do this: net.Start("lockpick_start") net.WriteInt( totalLockpicks, 8 ) if SERVER then net.Send( self.Owner ) end
why start the network, write a int, and then do nothing with it if its the client?? put the whole network in the if statement
No, you need to wrap all net message commands to if SERVER
I don't understand very well. I'm french. But what i did work so ...
if SERVER then net.Start("lockpick_start") net.WriteInt(totalLockpicks,8) net.Send( self.Owner ) end
I dont know why. Its the addon creator who do that. Thanks for your help
Sorry, you need to Log In to post a reply to this thread.