Weapons On Spawn?

Hello Facepunch,
I’m trying to learn more about GLua and coding in general and I just had a quick question.
How would/what would the code be to allow a player to spawn with a weapon/weapons every time they join, for a darkrp server. For instance if you buy a “permanent weapon” how would one set it so steamID blank spawned with weapon blank. (No I don’t wanna use a pointshop, I want them to just spawn with the weapon; if they’ve purchased it)

Thanks for the help.


Have your server store a table with the permanent weapons a player owns and then just use an in pairs arguement to give the player all of his owned guns during the PlayerSpawn hook.

Thank you!