I’ve just started with coding in Lua, and thought it would be fun to make an EXP gamemode. At this point I’ve got my gamemode for that working, but now I want to create an EXP gun.
I use SetPData for my experience points but how do I access that function from within a SWEP?
I seem to keep having a hard time with the way the game is scripted, and how I access a certain component. Is there a tutorial for that of some sort?