And post any errors you have.
Here's a net example: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/networking_booleans.lua.html[/url]
And here in a "real-world" usage example: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/display_something_on_initial_spawn.lua.html[/url]
snip
You haven't shown how you're calling it. I don't see any issues with the code aside from not calling it and how it is formatted ( double tabs ).
If you look at this, a console command triggers the net message. Where is yours being called, how is it being called, etc etc?
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/networking_understanding_realms.lua.html[/url]
snip
[QUOTE=Jordanlol;45246466]calling it by doing lua_run_cl NetExample3() just for texting purpose. Like I said. The function works pefect in a local game but not in my dedicated server.[/QUOTE]
When you called NetExample3; is "EXAMPLE 3: Sending string to the server..." being printed to the console? If not, it's possible you've been a silly-billy and forgot your [URL="http://wiki.garrysmod.com/page/Global/AddCSLuaFile"]AddCSLuaFile[/URL].
Sorry, you need to Log In to post a reply to this thread.