Garry's Mod

Garry's Mod

756 ratings
[DarkRP] Keep pocket contents when disconnecting
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Roleplay
File Size
Posted
Updated
1.905 KB
10 Mar, 2015 @ 7:10pm
6 May, 2017 @ 10:39am
4 Change Notes ( view )

Subscribe to download
[DarkRP] Keep pocket contents when disconnecting

In 2 collections by Cédric GÉRILLE [GiletJaune]
Université Joseph Poireau (serveur)
70 items
G-1:788429
50 items
Description
This addon is for the DarkRP gamemode only!
BIG UPDATE May 2017: works well with anything now, also will save pocket contents in database by default.
This addon will save your pocket contents when you disconnect so your pocket is restored when you connect again.
It will only save contents after restart and map reload if properly configured: see below.

[curse.com]

Configuration
Add this ConVar to your garrysmod/cfg/server.cfg.
darkrp_keep_pocket_forever - Allows the addon to store and load pocket contents from database [0/1] (default 1)

Bug tracker
Please let me know it the restored entities properly work. For instance, Falco's Prop Protection may mess up with who can manipulate restored entities.

Note: if you are the host then if you use the retry console command then the disconnect event is not triggered, so if darkrp_keep_pocket_forever is not set to 1 then your pocket will not be saved.
124 Comments
Hexon_Boi 14 Jun, 2024 @ 5:27pm 
can u add a convar that makes perma pockets save contents for separate jobs? So when im like medic i can store medkits but when i change to other job i have another set of items in my pocket
Cédric GÉRILLE [GiletJaune]  [author] 28 Jul, 2018 @ 3:28am 
If it's in your pocket when you leave then I suppose it will still be there when you come back.
☝Пошел на ♥♥♥ 28 Jul, 2018 @ 12:38am 
Say in Russian , if i exit server and join again my money printer will save?
Cédric GÉRILLE [GiletJaune]  [author] 15 Jul, 2018 @ 6:45am 
You just told me you can't subscribe to the DarkRP on the Workshop. Deal with it but honestly it's not so much of a problem of mine. :steammocking:
Quotation Marx 15 Jul, 2018 @ 5:11am 
Surely there's a Steam workshop link? I'm just unhealthily paranoid about viruses.
Cédric GÉRILLE [GiletJaune]  [author] 15 Jul, 2018 @ 4:03am 
Just add it on your game / server by downloading it through its Git repository (or the Subversion compatibility layer if you prefer instead).
Home page: https://github.com/FPtje/DarkRP/
Quotation Marx 15 Jul, 2018 @ 3:50am 
How do you even download the Darkrp gamemode? It says that I can't access it if I click on it & therefore I can't subscribe to it
Bolsonaro 28 Jan, 2018 @ 3:37pm 
cance :steamhappy:
Cédric GÉRILLE [GiletJaune]  [author] 24 Dec, 2017 @ 4:50am 
Of course not, because everything can be spawned from the spawn menu with no limit.
tourniquet taster 23 Dec, 2017 @ 7:48pm 
IS THERe SOMETHING LIKE THis in ssandbox?\