MrNewbScripts
My DiscordSee The StoreCommunity_BridgeGithub
  • MOTD
  • MrNewbVehicleKeys
    • Install
      • Framework
        • esx
        • qb-core
        • qbox
      • inventory
        • 🐂ox_inventory
        • qb-inventory
        • qb-inventoryv2
        • origen_inventory
        • ps-inventory
        • jpr-inventory
        • qs-inventory
      • Inventory Images
    • Exports
      • Server Exports
      • Client Exports
    • Backwards Events
      • Client Events
      • Server Events
    • FAQ
    • Commands
    • Snippet Examples
      • qb-vehicleshop
      • qb-garages
      • Common qb-core Snippets
  • MrNewbBeeKeeping
    • Install
      • Frameworks
        • qb-core
        • qbox
        • ESX
      • Inventory Images
      • Inventory
        • 🐂ox_inventory
  • MrNewbPrescriptions
    • Install
      • Framework
        • qb-core
        • qbox
        • ESX
      • inventory
        • 🐂ox inventory
        • qs-inventory
        • qb-inventory V1
        • qb-inventory v2
      • Inventory Images
    • Exports
      • Server Exports
      • Client Exports
    • Snippet Examples
      • qb-drugs
      • qbx_ambulancejob
    • FAQ
  • MrNewbPlateCarriers
    • Install
      • Framework
        • qb-core
        • qbox
        • ESX
      • inventory
        • 🐂ox_inventory
        • qb-inventoryv2
      • Inventory Images
    • Exports
      • Server Exports
  • MrNewbCustomPlates
    • Install
      • Framework
        • qb-core
        • qbox
        • ESX
      • inventory
        • ox_inventory Steps
      • Inventory Images
  • MrNewbNameChanger
    • Install
      • Frameworks
        • qb-core
        • qbox
        • ESX
      • Inventory
        • 🐂ox_inventory
        • ps-inventory
        • qb-inventoryv2
        • qb-inventory
      • Inventory Images
  • MrNewbPawn
    • Install
  • MrNewbPhoneTracker
    • Install
      • Frameworks
        • qb-core
        • qbox
        • ESX
      • Inventory Images
      • Inventory
        • 🐂ox_inventory
  • MrNewbWeaponTints
    • Install
      • inventory
        • ox_inventory Steps
      • Inventory Images
  • MrNewbGiftBox
    • Install
      • Framework
        • qb-core
        • qbox
        • ESX
      • inventory
        • ox_inventory Steps
      • Inventory Images
    • Exports
      • Server Exports
Powered by GitBook
On this page
  • GetInsurance
  • ReturnInsuredRate
  • CreatePrescription
  1. MrNewbPrescriptions
  2. Exports

Server Exports

This is a list of the available server side exports.

GetInsurance

-- This export will return true/false based on insurance status of player

exports.MrNewbPrescriptions:GetInsurance(source)

ReturnInsuredRate

-- This export will return a value based on if the source player has insurance or not
-- the amount could be a medical bill and then you could pass this and it will give
-- a price based on a player being insured or not

exports.MrNewbPrescriptions:ReturnInsuredRate(source, amount)

CreatePrescription

-- This will give a prescription to the player
-- meds would be the value matching in config
-- these items have to exsist in the config but the values are adjustable in this
    local meds = {
		name = 'zombix',  
		usableitem = 'zombix', -- this item (anythign you want not owned by another script)  must be added to the config
		uses = 3,
		label = 'Zombix 250 MG',
		description = 'Zombix 250 MG',
		price = 500,
		icon = 'fa-solid fa-briefcase-medical',
		effect = 'stamina',
		value = 1.4,
		timecycle = 'drug_wobbly',
		strength = 0.56,
		time = 30,
	}
exports.MrNewbPrescriptions:CreatePrescription(source, meds)
PreviousExportsNextClient Exports

Last updated 10 months ago