• net message help
    6 replies, posted
ive been trying to get my head around net "messages" to send stuff between the server and client and i thought a good way to practice this would be to create and MOTD. I created my MOTD but now im having trouble making it "appear" when you join my test server(My MOTD does not show up when i join. Im creating it as a addon and have my client and server files in a autorun folder (e.g VoidMOTD\lua\autorun\server\sv_MOTD.lua) pastebins util.AddNetworkString( "Playerspawned" ) -server net.Receive("Playerspawned", function() local DermaPanel = vgu.. -client I'm not sure how to create an addon so i maybe have done something wrong there
hook.Add(PlayerInitialSpawn,"openMOTDonjoin",openMOTDonjoin) -> hook.Add("PlayerInitialSpawn","openMOTDonjoin",openMOTDonjoin)
i've fixed the above problem but still nothing(still thanks for pointing that out to me, kinda embarrassing i missed that)
Shouldn't MakePopup() be after all the vgui elements are created?
i though files within autorun didn't need to be included and i moved "makePopup" to no avail. Should i be including my clientside file?
I just tried your code and it works so there must be something wrong with your includes. Serverside file should be in autorun/server and clientside file in autorun/client.
i was trying to create an addon, but its still not working for me :/ how have you done your includes?
Sorry, you need to Log In to post a reply to this thread.