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

r_props_mechanic Installation

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

Prerequisites

Mechanic Props has no dependencies.

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

Installation Steps

Download & Extract

  1. Buy Mechanic 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_mechanic
  • r_props_mechanic
    • assets
      • images22 inventory images
        • attach_offsets.luahand positions
        • 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_mechanic

        Items

        Paste the file for your inventory. Skip any item your server already has: repairkit, advancedrepairkit, nitrous, jerrycan and tire are common names in mechanic and fuel scripts, so those scripts pick the items up as they are.

        Paste assets/ox_inventory_items.lua into ox_inventory/data/items.lua.

        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. Every item has a carry emote, for example /e mechtire or /e mechjerrycan.

        Restart

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

        Server console
        refresh
        ensure r_props_mechanic
        Started resource r_props_mechanic

        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_mech_engine`
        RequestModel(model)
        while not HasModelLoaded(model) do Wait(0) end
        local prop = CreateObject(model, coords.x, coords.y, coords.z, true, true, false)
        • Every prop stands on its origin, so put it on the ground or a bench as it is.
        • The items do nothing on their own: your mechanic, tuning or crafting script decides what using one does.

        Hand positions

        assets/attach_offsets.lua has a tested bone, position, rotation and animation for every item model:

        local offsets = {
            r_mech_jerrycan = { bone = 57005, pos = vec3(0.598, -0.095, -0.040), rot = vec3(-31.221, -57.762, 67.546), dict = 'missheistdocksprep1hold_cellphone', clip = 'static', flag = 49 },
        }

        Attach the prop with AttachEntityToEntity to GetPedBoneIndex(ped, bone) and play dict / clip with the flag. The same values are in the rpemotes lines.

        Next Steps