Configuration
Wallet, Wisp and Health
Settings for the Wallet cards, the Wisp messenger and the Health app.
Files: configs/config_wallet.lua, configs/config_wisp.lua and configs/config_health.lua. What players see is on Wallet, Messaging and Health.
#Config.Wallet
Wallet holds the character's ID, licences and job badge as cards, plus tickets, coupons and passes other scripts hand out. Cards are shown to a player standing next to you. The shown copy is built on the server.
| Setting | Type | Default | What it does |
|---|---|---|---|
Wallet.Enabled |
boolean | true |
false switches Wallet off: the icon goes and every request is refused. Cards scripts added stay stored and the AddCard and RemoveCard exports keep working |
Wallet.ShowBloodType |
boolean | true |
The blood type from the Health app's Medical ID is printed on the ID card and the licences |
Wallet.Photos |
boolean | true |
Players can put their own photo on the ID, each licence and the job badge. A card without one shows the phone's profile picture |
Wallet.ShowRange |
number | 3.0 |
Metres: how close someone has to stand to be shown a card or handed one |
Wallet.ShownMinutes |
number | 2 |
A card someone showed you stays in your "shown to you" list for this many minutes |
Wallet.RequireItems |
boolean | false |
true: a card only appears while the matching item is in the inventory |
Wallet.Items |
table | identity = 'id_card', driver = 'driver_license', weapon = 'weaponlicense' |
Item per card, used with RequireItems. nil for a card: no item needed |
Wallet.Licences |
table | driver, weapon, business, hunting, fishing, pilot |
Licence names from the framework and the title key they use (locale wallet.licences.<key>) |
Wallet.BadgeJobTypes |
string list | {} |
Job types that carry a badge card (QBCore and Qbox job type). An empty list gives every job a card. On a framework whose jobs have no type (ESX) every job gets a card |
Wallet.MaxCustomCards |
number | 40 |
Cards from scripts kept per character |
Expired cards from scripts are deleted Config.Retention.wallet days after they expired. Exports: Wallet exports.
#Config.Wisp
Wisp is a messenger on the phone number: chats, groups, communities, status, calls and broadcast lists.
| Setting | Type | Default | What it does |
|---|---|---|---|
Wisp.Registration |
boolean | true |
true: a Wisp account belongs to a number and is set up on one phone at a time. The player sets Wisp up with a number that is in the phone (a code arrives on that line as a text message). That phone keeps the account, SIM in or out, until another phone sets the same number up. false: the account is the phone's own number and follows its SIM |
Wisp.GroupLimit |
number | 1024 |
Members per group, admins included |
Wisp.CommunityLimit |
number | 5000 |
Members of a community's announcements. The members of its linked groups join it |
Wisp.PinnedChats |
number | 3 |
Chats a player can pin |
Wisp.EditWindow |
number | 900 |
Seconds after sending in which a message can still be edited |
Wisp.DeleteWindow |
number | 3600 |
Seconds after sending in which a message can be deleted for everyone |
Wisp.ForwardTargets |
number | 5 |
Chats one forward can reach |
Wisp.ForwardMessages |
number | 10 |
Messages per forward |
Wisp.ForwardedMany |
number | 5 |
"Forwarded many times" shows from this count |
Wisp.Disappearing |
number list | 0, 1 day, 7 days, 90 days |
Disappearing message timers offered per chat, in seconds. 0 is off |
Wisp.LiveLocationDurations |
number list | 15 minutes, 1 hour, 8 hours | Live location lengths offered, in seconds |
Wisp.LiveLocationInterval |
number | 10 |
How often the sharing phone sends its position, in seconds |
Wisp.PresenceGrace |
number | 20 |
"Online" means the phone is open. A player still shows as online this many seconds after closing it |
Wisp.PollOptions |
number | 12 |
Options per poll |
Wisp.BroadcastLists |
number | 20 |
Broadcast lists per player |
Wisp.BroadcastMembers |
number | 256 |
Recipients per list |
Wisp.StatusHours |
number | 24 |
How long a status stays up |
Wisp.StatusActive |
number | 30 |
Statuses a player can have up at once |
Wisp.ReceiptMembers |
number | 32 |
Per-recipient delivered and read times are kept for chats up to this size. Larger groups show ticks only |
Wisp.ExportMessages |
number | 2000 |
Messages written into one chat export |
Wisp.Defaults.about |
string | a short greeting | The "about" text of a new profile |
Wisp.Defaults.privacy |
table | see below | Starting privacy for new profiles |
Accounts that existed before Registration was switched on are claimed by their phone the first time Wisp is opened, with no setup. Wisp Settings > Account > Change Number moves the account to another number of the phone.
Privacy defaults:
| Field | Default | Values |
|---|---|---|
lastSeen |
'everyone' |
'everyone', 'contacts', 'nobody' |
photo |
'everyone' |
'everyone', 'contacts', 'nobody' |
about |
'everyone' |
'everyone', 'contacts', 'nobody' |
status |
'contacts' |
'contacts', 'except', 'only' |
readReceipts |
true |
boolean |
groups |
'everyone' |
Who may add you to groups: 'everyone', 'contacts', 'nobody' |
#Config.Health
Health counts what the character does. Values are sampled on the client, then checked and capped on the server.
| Setting | Type | Default | What it does |
|---|---|---|---|
Health.Enabled |
boolean | true |
The Health app on or off |
Health.KeepDays |
number | 30 |
Days of history kept |
Health.Goals |
table | move = 400, exercise = 30, stand = 12, steps = 8000 |
Daily goals |
Health.MedicJobs |
string list | an example list | Jobs that are medics: in the Health app they can open the Medical ID of the people next to them and write into their medical records. Set it to your server's jobs |
Health.Medical.Enabled |
boolean | true |
The Medical ID (blood type, age, allergies, emergency contacts) and the medical records |
Health.Medical.ScanRange |
number | 4.0 |
How close a medic has to stand to someone to open their Medical ID, in metres |
Health.Medical.MedicsNeedDuty |
boolean | false |
Only medics who are on duty count |
Health.Medical.NotifyPatient |
boolean | true |
A notification on the patient's phone for every new record |
Health.Medical.MaxRecords |
number | 200 |
Records kept per character. The oldest go first |
Other scripts write records with the AddMedicalRecord export: Health exports.