Randolio Development
  • 👤Welcome
  • 💰Paid Scripts
    • 🏥Medical
      • ❌DEPENDENCIES
      • ❗QBCore Installation
      • ❗QBOX Installation
      • ❗ESX Installation
      • 💻Event/Functions
      • 👨‍💻Exports
      • 🤓Configuration
    • 📱ATM Hacking
    • ⛅Weather Sync
    • 🏚️Stash Houses
    • 💄Female Bundles
      • 🤖Discord Bot
      • 💻Exports
      • ➕Items/Images
    • 🪄Witchcraft
    • 🔌Gun Plugs
    • 📹News Job
    • 🗒️Vehicle List
Powered by GitBook
On this page
  • Metadata
  • Adding new heal items
  1. Paid Scripts
  2. Medical

QBCore Installation

This explains the small installation steps which are necessary for persistent death/armor across server restarts. You can remove qb- ambulancejob as this is a complete replacement.

ONE SYNC (WITH INFINITY) IS REQUIRED.

Metadata

(Old Format) Add this entry for metadata in qb-core/server/player.lua if you do NOT have them already.

PlayerData.metadata['bleeding'] = PlayerData.metadata['bleeding'] or 0

(New Format) If you're using a newer version of qb-core, the format was changed to QBConfig.Player.PlayerDefaults in the config.lua. You should find the metadata = {} part of the QBConfig.Player.PlayerDefaults and insert these below if they don't exist:

bleeding = 0,

Adding new heal items

If adding a new heal item to the Server.HealItems table, you can simply add them to qb-core/shared/items.lua like the following example:

-- qb-inventory example
exampleitem = {
    name = "exampleitem",
    label = "Example Item",
    weight = 500,
    type = "item",
    image = "exampleitem.png",
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = "An example item",
},

-- ox inventory example
["exampleitem"] = {
    label = "Example Item",
    weight = 500,
    stack = true,
    close = true,
    consume = 0,
    description = "A heal item.",
    client = { image = "exampleitem.png", },
    server = { export = 'randol_medical.exampleitem', },
},
PreviousDEPENDENCIESNextQBOX Installation

Last updated 8 months ago

💰
🏥
❗