[Release] project_unk - ox_inventory [RedM edition] [Fork]

Introduction

Warning: Repo is not maintained by overxtended team, dont message them!

This fork adaptation for RedM is huge WIP and should be used by experienced developers (in this state)

  • The situation with RedM is like, everybody keeps stuff “behind” closed doors.
  • I would like to contribute with other people with decent own resources / open src that could be used from FiveM.
  • I know there isnt any inventory that is properly done, guys from overxtended have done decent job.

Additional informations

  • By default supporting: redem_roleplay, QBR, VORP (with some tweaks)
  • Give command: /giveitem serverId water 1
  • Open inventory by keybind [I]

Current state:

  1. Weapon system (not ready)
  2. Stashes (not ready)
  3. Horse saddle “stashes” (not ready)
  4. RDR3 UI (not ready)
  5. Inventory restarted when players on server (resync player inventories)
  6. Defined items that should work (water, bread, money)
  7. Saving of player inventory [QBR - ready]

Setup guide for redem_roleplay:

  1. Download the repository (…)
  2. ALTER table of characters with inventory. (https://pastebin.com/raw/Pk5YDJn2)
  3. Now, move to server.cfg and the structure needs to be like this:

ensure oxmysql

ensure redem
ensure redem_roleplay

ensure ox_lib
ensure ox_inventory

Link to repository

3 Likes

Looks good, a VORP version would be perfect.

1 Like

For sure, more updates on way! :wink:

2 Likes

New update for inventory!

  • Dynamic queries, depend of shared.framework
  • Removed versionCheck from inventory
  • Inventory transactions (instead of usage AddItem / RemoveItem, better flow)
  • Removed debug stuff, and stuff that is used only for FiveM version of inventory
  • Fixed issue with opening of inventory (delay, wrong placement)
  • Support for QBR framework, but require small edits to FW [project_unk-ox_inventory · GitHub]
1 Like

Another update with VORP FW support!

Warning: VORP FW support, missing inventory saving!

  • Added missing inventory icons from VORP (should be later cleared with clear bg)
  • Added inventory items from vorp_inventory db structure (via python.exe)
  • Added missing weapons items in weapons.lua
  • Change from oxmysql to mysql-async (to keep compatiliity for VORP & QBR etc → provider)
  • Defined VORP bridge + added emulatorAPI - which is going to handle all vorp_inventory:API func (more included soon)
  • Remove oxmysql check depend
  • Defined default inventory framework ‘vorp’ → you can define any of your choice
  • Removed legacy code in modules/items
  • Added queries for VORP fw
  • Basic weapon logic hook (WIP)

You can try it, VORP bridge support is out - missing few things, but looks stable. :+1:

Looks like inventory doesn’t work on VORP at all. I press the open key but nothing happens.

Hey, is this still WIP?

1 Like