New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SWEP/Initialize does not get called on client sometimes #2732
Comments
Yes! Had to work around this in my weapon base by making a SWEP variable track when it was initialised, and if it was not on deploy, initialise it. |
I am a noob coder (almost). I wish I had this sort of workaround. |
It's not hard to fix in the Lua state. There's tons of bugs on this GitHub, many game breaking that take higher precedent. |
updates? |
Even toolgun tools are affected by this |
Never seen this happen |
my gah! 2020 still open, didn't even remember this issue :I |
Simply cannot reproduce with any of the methods mentioned. I can make it happen if I spawn a SWEP under my feet while already having the gun, in which case it would get instantly deleted so as far as the client goes, it never existed in the first place, which is the correct behavior. If you are interested in the code used for testing, it's literally this:
in |
It happened a long time ago. |
If you spawn a SWEP with the toolgun, Initialize does not get called.
Does happen too, if you give yourself a weapon serverside with the meta:Give function.
The text was updated successfully, but these errors were encountered: