swkeep / keep-bags

A bag / backpacks script for fivem (esx,qbcore/qbox)
GNU General Public License v3.0
154 stars 37 forks source link

Briefcase password? #25

Closed AntonMars closed 3 months ago

AntonMars commented 9 months ago

Hi, where can we set the password for the briefcase? After I buy a briefcase, I would assume the password can be set on first use (opening) but it doesn't even open. When I set the locked = FALSE in the config, it opens. What do I need to do to set the password?

Also, can I shorten the stash ID length a bit? Typical ID looks like this:

Stash-Bag_1ae5ae27a78a16_02g273mvDV

The long ID overlaps the weight part on my inventory and doesn't look good. I assume the first part (1ae5ae27a78a16) is the player ID and the second part (02g273mvDV) is the stash ID. If I could halve each (7 chars and 5 chars), I would be happy. And, yes I know, the chances of a duplicate are greater, but I'm willing to take the chance. Please assist in where I need to go to change the player part (hash) as I've already figured out the stash ID part (RandomId(5) on line 192 in server_main)