Hey FacePunch community !
I get a problem with my net.SendToServer…
I’m testing a swep, so here the code :
cl_init.lua
if not LocalPlayer():canAfford(amount_floor) then
net.Start("fwlt")
net.WriteString("Testing")
net.SendToServer()
return ""
end
init.lua
-- Adding the netstring
util.AddNetworkString("fwlt")
-- When receive the net
net.Receive("fwlt", print("success"))
I think my code is correct but nothing apear…
I’m sure the if is working, I’ve tested the code with only a print(“success”) in the condition and it was working
I reallllly hope someone can help me !
Thanks a lot in advance,
Gaby