Garry's Mod

Garry's Mod

[DarkRP] Keep pocket contents when disconnecting
124 kommentarer
Hexon_Boi 14. juni 2024 kl. 17:27 
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]  [ophavsmand] 28. juli 2018 kl. 3:28 
If it's in your pocket when you leave then I suppose it will still be there when you come back.
☝Пошел на ♥♥♥ 28. juli 2018 kl. 0:38 
Say in Russian , if i exit server and join again my money printer will save?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 15. juli 2018 kl. 6:45 
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. juli 2018 kl. 5:11 
Surely there's a Steam workshop link? I'm just unhealthily paranoid about viruses.
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 15. juli 2018 kl. 4:03 
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. juli 2018 kl. 3:50 
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 kl. 15:37 
cance :steamhappy:
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 24. dec. 2017 kl. 4:50 
Of course not, because everything can be spawned from the spawn menu with no limit.
tourniquet taster 23. dec. 2017 kl. 19:48 
IS THERe SOMETHING LIKE THis in ssandbox?\
robalek69 3. sep. 2017 kl. 6:56 
I hope i have pasted it correct xD
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 29. juli 2017 kl. 17:25 
Well, I do not think I have done something serious in my last updates...
I use the method Player:SetPData() [wiki.garrysmod.com], which means that saved pockets are stored in the server's sv.db (which is an SQLite database).

The problems you mention seem to be something related to some bad SQL requests from your addons, or worse (backdoor, etc.).

I do not use my own table in the database (which is not really smart), so any kind of cleanup requires some work to make. I have not done a cleanup feature, so that's for sure the full cleanup does not come from my code. Nevertheless, if your pocket is empty when you disconnect then your saved pocket will actually be removed from database rather than saving an empty (and useless) pocket list.
Soma 29. juli 2017 kl. 13:51 
Just curious, my pockets will randomly lose everything when I reconnect. It's strange, because since my last comment, it's worked fine 90% of the time. Randomly it erases everyones pockets when we start up the server though, every once in awhile.

I'm assuming it has to do with the assorted random addons I've been incorporating into my server, (durgz mod, alchemy mod, vapes, etc.) but I can't seem to pinpoint which one is the cause. I'm sure it's one of my addons, but I was just wondering if you had any ideas as to why this would be happening.
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 2. juni 2017 kl. 1:50 
:steamhappy:
Soma 1. juni 2017 kl. 23:30 
Ah ok. I may have 3000+ hrs in Gmod, but I'm only now learning DarkRP. Thanks for your help, the addon works great! :)
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 1. juni 2017 kl. 21:53 
You just open it with your favorite text editor. xD Those files are just a list of ConVars with their values.
Soma 1. juni 2017 kl. 21:47 
If i can do it through the console, then nevermind. No need for the arbitrary file problems. xD
Soma 1. juni 2017 kl. 21:46 
But how do you open the server.cfg? It isn't recognized by Notepad, so how am i supposed to add code to it if i have no way of reading it's contents?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 1. juni 2017 kl. 21:41 
Either you type them in console or you put them in cfg/server.cfg, very simple isn't it?
Soma 1. juni 2017 kl. 21:26 
Um, how do I add the console variable? Can you please help me?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 6. maj 2017 kl. 6:25 
I do not know. :steamsad:
Chisma 6. maj 2017 kl. 6:24 
Okay, but in what file I put it, I'm not sure
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 6. maj 2017 kl. 6:21 
This addon is meant to save and restore the content of the default pocket. :steamsad:
Chisma 6. maj 2017 kl. 6:05 
I've done it but nothing happens, the default pocket is set
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 6. maj 2017 kl. 5:27 
Usually by adding it to your server's collection!
Chisma 6. maj 2017 kl. 4:35 
How can I install it?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 26. mar. 2017 kl. 8:53 
Well, it's complicated, otherwise I would have fixed it already.
Basically you can remove the filter. The problem is that you have several fields that do not contain something that can be stored (especially entities). You need to find a way to make them storeable in database.
M0NstR. 26. mar. 2017 kl. 8:44 
how can i fix this, if possible?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 26. mar. 2017 kl. 8:02 
It's because restoring entities does not restore every field.
I filtered saved data to avoid storing a big bunch of useless information.
And obviously that does not work well for every entity type.
M0NstR. 26. mar. 2017 kl. 7:14 
Hi! Please, can you tell me, why weapons save in inventory, but after reconnect, it is props, I can't take it. (sry for my bad english)
zzz 14. jan. 2017 kl. 13:15 
cool
Dalek101 8. jan. 2017 kl. 12:26 
well i think the addon version is deleted but i cant make a steamcmd or anything else cos i try and try again but it never works
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 8. jan. 2017 kl. 9:54 
You want the DarkRP as an addon? Is that the question?
Dalek101 8. jan. 2017 kl. 8:54 
how do i get the actual darkRP addon for the gamemode?
Husky Chocolate 20. dec. 2016 kl. 14:44 
As a Fan of your addon, i believe you have the will and capability to accomplish all you have to do. good luck sir.
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 20. dec. 2016 kl. 14:31 
LOL, but I have so much to do...
Husky Chocolate 20. dec. 2016 kl. 14:21 
Sir, The potential is here, the only thing stunting your achievment is your Atitude.
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 20. dec. 2016 kl. 8:22 
My brain cannot achieve such an improvement.
Husky Chocolate 19. dec. 2016 kl. 22:58 
you can buff it by reducing all shipments with items above 10 to 10 upon server entry
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 19. dec. 2016 kl. 22:35 
Because it's a dangerous feature.
Husky Chocolate 19. dec. 2016 kl. 21:03 
Why No Save?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 16. dec. 2016 kl. 10:05 
Bah, c'est la poche habituelle du DarkRP.
Yoru Wakusei 16. dec. 2016 kl. 6:51 
je trouve pas le pocket
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 13. dec. 2016 kl. 8:17 
That is true, shipment information is not saved yet.
Husky Chocolate 13. dec. 2016 kl. 0:18 
Shipments are broken after loging back in, no model/descripting just a crate, hit 'e' on it and it disappears, 10 weapons gone.
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. dec. 2016 kl. 13:44 
If you enable darkrp_keep_pocket_forever, almost everything is concerned.
A big remake is needed to restore every field of entities.
76561198116800015 9. dec. 2016 kl. 13:40 
What exactly? Im going to use pocket as inventory
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 9. dec. 2016 kl. 13:38 
I think so, but it is still as buggy as it was. xD
76561198116800015 9. dec. 2016 kl. 13:36 
still working?
Cédric GÉRILLE [GiletJaune]  [ophavsmand] 15. nov. 2016 kl. 8:11 
Nevermind, this addon is kind of outdated.