QBCore does not use SQL items by default.Open: qb-core/shared/items.luaAdd the following item:["mask"] = { name = "mask", label = "Medical Mask", weight = 0, type = "item", image = "mask.png", unique = false, useable = true, shouldClose = true, description = "A medical face mask."},Make sure the item image exists in: qb-inventory/html/images/
FrameworkDefines which framework the script uses.Supported Frameworks:
Auto - Detect Automatically
ESX
QBCORE
QBOX
Config.Framework = "auto"
CommandThe command players use to toggle the mask.
Config.Command = "emask"
Modifying the command may result in conflicts or cause the script to malfunction. Always use /emask to ensure reliable and consistent functionality.
Item UsageAllows the mask to be used as an inventory item instead of only a command.
NotificationsMessages shown to players when using the mask.
Config.NotifyOn = "You put on your medical mask"Config.NotifyOff = "You removed your medical mask"Config.NoPermission = "You are not authorised to use this"