SWEP Base Creation Question

Hey. I’ve been coding lua for 2 years, and have just started to code in source games. I have recently shifted my gaze to an ARMA style gamemode, which has been going along fine. I like to watch tutorials to learn how to get into a new subject, but I’ve been having a problem with finding a tutorial for making an SWEP base itself. All I can find are tutorials on modifying other SWEP bases. If someone could link me to a tutorial, or teach me theirself, I would like that. I already know how to code lua well, so I do not need any prior knowledge, such as an introduction or basic functions.

What I did to make a test set, they weren’t very good but, I looked at simple bases like M9K and Madcows. Just look in there, make a copy and start testing.