Configuration

Every option in config.lua, with what it controls and its default value.

Every option in config.lua is documented below.

MS.Layout.header1
HUD header layout; 1 or 2, each a different visual style for the branding header.
MS.Locale"en"
Active locale key. Must match a table in MS.Locales, populated from locale/*.lua (only en.lua ships by default).
MS.Layout.title"FOOD"
First line of the HUD title text.
MS.Layout.subtitle"UI"
Second line of the HUD title text.
MS.Layout.type1
Visual variant of the HUD; 1 to 9, each a different layout and style.
MS.Layout.flipfalse
Mirrors the HUD so it reads against the opposite edge of the screen.
MS.Layout.positionx=5.0, y=74.0
On-screen X/Y position of the HUD.
MS.Settings.displaytrue
Whether the food/water HUD is shown at all.
MS.Settings.interval.food300
Seconds between automatic food drain ticks.
MS.Settings.dev_modetrue
Prints debug output to the client console via MS.Debug(), tagged [MORE Scripts - Status].
MS.Settings.interval.drink300
Seconds between automatic water drain ticks.
MS.Settings.interval.remove0.5
Amount removed from food or water on each drain tick.
MS.Settings.damage.interval5
Seconds between damage ticks once food or water has hit zero.
MS.Settings.damage.amount5
Health removed per damage tick while starving or dehydrated.
MS.Settings.warning15
Food or water value below which the HUD shows its warning icon.
MS.Settings.networkObjtrue
Syncs the held food/drink prop so nearby players can see it too.
MS.Settings.menuCommand"status"
Command that opens and closes the in-game HUD settings menu.
MS.Settings.resetCommand"reset"
Command that resets the HUD back to its default screen position.
MS.ReviveEvent"esx_ambulancejob:revive"
Client event this resource listens for to reset food and water after a revive. Defaults to ESX's ambulance-job revive event — change it to match whatever your server actually fires, or the reset never happens.
MS.SafezoneHospital, radius 100.0
List of {coords, radius} zones where starvation/dehydration damage is suspended; ships with the hospital by default.
MS.Itemsbread, water, bigmenu
Consumable items that restore food, water, or both — each with its own restore amount, optional inventory consumption, eat/drink animation (with an optional prop and bone attachment), and sound. Item keys must match real item names in your inventory system.

Last updated