• [Release] Permanent Weapons [Menu | System]
    1 replies, posted
Here is another addon from me. With the chatcommand "!permweapons" you can open the permweapon menu. As an admin you can grant or take other people permanent weapons. All data is saved trough the inbuild sql libary, so there will be no stupid txt files If you have any suggestions or questions, write a comment or add me on steam For people who know how the Gmod Lua works:  PLAYER:CheckPermWeaps()  - Reloads the permweapons profile of the player PLAYER:SavePermWeapons()  - Save all permweapons ( is getting executed immediately after changing ) PLAYER:ResetPermWeapons()  - Resets all permweapons PLAYER:GrantPermWeapon( wep )  - Grants a player a permweapon ( wep is the classname of the weapon ) PLAYER:TakePermWeapon( wep )  - Takes a permweapon from the player ( wep is the classname of the weapon ) PLAYER:GivePermWeapons()  - Give the player all his permweapons ( is getting executed at PlayerLoadout ) Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1532384563 Github: Coming soon
Cool! Thanks for sharing the code as well, helps interested people learn.
Sorry, you need to Log In to post a reply to this thread.