Behaviour
Config.AutoCollect
Config.AutoCollect = false
true: taking the wallet out first moves the player's own cards from their pockets into it ("You put your 2 cards
in your wallet."). A card whose owner id (citizenid, identifier ... see Config.CardFields.owner) is someone else
stays in the pocket, and so does a card the player pocketed from the wallet on purpose (remembered per character until
they put it in again). A card with no owner id counts as the player's own.
false (the default): cards only go in when the player presses F with the wallet out.
Servers with their own ID or bank scripts: read Step 6 of the ID guide before turning this on. A card in a wallet is not in the player's inventory.
Config.OnePerPlayer
Config.OnePerPlayer = true
A player who already carries a wallet can not buy a second, or move one into their pockets from a stash, trunk or
glovebox ("You already carry a wallet."). Taking one off another player or picking one up off the ground is always
allowed: that is how a wallet is stolen. Wallets given by a script or an admin are not limited, and turned-off wallets
do not count. false = no limit.
Config.Starter
Config.Starter = { enabled = false, give = true, item = 'wallet_matte', moveCards = false, delayMs = 6000 }
A wallet for every character, once: the first time they load in after this is turned on.
| Setting | What it does |
|---|---|
enabled |
true turns it on. Characters already online get theirs when the resource starts. |
give |
Give them item if they carry no wallet. |
item |
Which wallet. |
moveCards |
Also put the cards they carry into it. |
delayMs |
How long after the character loads, in milliseconds (so the framework's own starter items are in first). |
Each character gets it once, whatever happens later (it is remembered per character id). Leave it off if your framework's starter items already give a wallet. See Shops & the starter wallet.
Other settings
| Setting | Default | What it does |
|---|---|---|
Config.HandRange |
2.0 |
Showing or handing a card: the closest player within this many metres. The server allows 1 m more for movement. |
Config.SyncMs |
5000 |
While a wallet is out, how often (ms) it checks what is really in it. |
Config.AfterInventoryMs |
350 |
Used from the open inventory: wait this long (ms) after it closes before the take-out starts, so an inventory that plays an emote on close does not cut it. 0 = at once. |
Config.Labels |
true |
The tag next to the prop under the mouse. false = no tag. Its colours: Screen colours. |
Config.DrawRange |
40.0 |
Other players' wallets are drawn within this many metres. |