Skip to content
Black FridayUp to 40% off
Documentation
Props8Medical Props

r_props_medical Installation

Install Medical Props: add the resource, paste the items, copy the inventory images and add the emotes.

Prerequisites

Medical Props has no dependencies.

  • Optional: ox_inventory, qbx_core, qb-core or es_extended for the items
  • Optional: rpemotes or dpemotes for the emotes

Installation Steps

Download & Extract

  1. Buy Medical Props on r-scripts.net
  2. Download it from your Cfx.re Portal
  3. Extract the folder into your server's resources directory
  4. Keep the folder name r_props_medical
  • r_props_medical
    • assets
      • images23 inventory images
        • attach_offsets.luahand offsets
        • esx_items.sqlESX items
        • ox_inventory_items.luaox_inventory items
        • qb_items.luaQBCore items
        • rpemotes.luaemote lines
      • serverversion check, no need to touch
        • streamthe models, no need to touch
          • fxmanifest.lua

        Add to server.cfg

        ensure r_props_medical

        Items

        Paste the file for your inventory. If you already have bandage, firstaid, medikit or painkillers, keep one entry of each (see Common Issues).

        Paste assets/ox_inventory_items.lua into ox_inventory/data/items.lua. Qbox uses this tab too. Bandage, gauze, painkillers, ibuprofen and the epinephrine pen already have their animation, prop and hand position.

        Then copy assets/images/*.png into your inventory's image folder.

        Emotes (optional)

        Paste assets/rpemotes.lua into the PropEmotes table of rpemotes (client/AnimationList.lua). dpemotes uses the same format. Try /e medkit or /e medchart.

        Restart

        Restart your server, or run this in the server console:

        Server console
        refresh
        ensure r_props_medical
        Started resource r_props_medical

        Use the props in your own scripts

        Spawn any prop by its model name, or place it with any prop placement script:

        local model = `r_med_stretcher`
        RequestModel(model)
        while not HasModelLoaded(model) do Wait(0) end
        local prop = CreateObject(model, coords.x, coords.y, coords.z, true, true, false)
        • Ground props stand on their origin.
        • r_med_xray, r_med_xray_off and r_med_glove_boxes hang on a wall: put their back flat against it.
        • r_med_ivpump has its origin on the pole clamp: place it at the same x and y as r_med_iv_stand and raise it to the height you want.
        • r_med_stretcher and r_med_stretcher_low are the same cot, raised and lowered: swap the models to raise or lower it.

        Hand props

        assets/attach_offsets.lua has the tested bone, position, rotation and animation for 23 props, for example:

        r_med_trauma_case = { bone = 57005, pos = vec3(0.3374, -0.0048, -0.1326), rot = vec3(121.2210, 122.2380, -67.5460), dict = 'missheistdocksprep1hold_cellphone', clip = 'static' },

        Attach with rotation order 1 (the second last argument of AttachEntityToEntity), which is what the numbers are made for.

        Next Steps