[Outdated][FX]Inventory System

Goal:
Provie a simple inventory system so police can search a suspect and their vehicle easily.

this was made for my server it is like the dojrp system but its remade

Installation instructions:

1) Drag then MGCRPInventory folder into your server resources folder. ex (fxserver/resources/)
2) Edit the citmp-server.yml file located in the main folder. ex (fx/)
3) Add the follow code: start MGCRPInventory #MGCRPInventory System to your server.cfg Example below.
server.cfg:
start chat
start spawnmanager
start fivem-map-skater
start baseevents
start â– â– â– â– â– â– â– 
start hardcap # prevents too many players from joining
start scoreboard
start MGCRPInventory #MGCRPInventory System
4) All done, restart your server and the mod should automatically start, or use start MGCRPInventory if you dont want to restart your server.

Usage Commands:

Player Inventory commands:

/addItem <item_name> <amount>   Amount will default to 1 if nothing is specified, item name can't contain spaces.
  Example: /addItem baseball_bat 1

/removeItem <item_name>         Removes the item from your inventory, no matter how many are in your inventory.
  Example: /removeItem baseball_bat

/clearInventory                 Completely clears your place inventory.

/inventory                      Shows your personal inventory.

/search <id>                    Shows the personal inventory of the player ID 
  Example: /search 15

Vehicle Inventory commands:

/vaddItem <item_name> <amount>   Amount will default to 1 if nothing is specified, item name can't contain spaces.
  Example: /vaddItem baseball_bat 1

/vremoveItem <item_name>         Removes the item from your inventory, no matter how many are in your inventory.
  Example: /vremoveItem baseball_bat

/vclearInventory                 Completely clears your place inventory.

/vinventory                      Shows your personal inventory.

/vsearch <id>                    Shows the personal inventory of the player ID 
  Example: /vsearch 15

Removed due to DOJRP Not liking this as usaul :wink:

Github Removed

Credits:
The initial code was by: @Atexx & @TheStonedTurtle

Contact info:
discord: Rhys19#5629
email: minecrafter2688@gmail.com

1 Like

is there a way you could make this menu based where the user could click to add the item to their inventory that way or be searched to make it easier so players are not having to remember any / commands

well i can make a seperate version for it currently i like to use / commands but yes i will try to make a seperate version unless someone else converts it and msgs me the download then i will give them credit for it and upload it here

1 Like

Thank you. That would be much appricated

You didn’t even make this at all, all you did was change a couple of the names, the __resource.lua still literally says “DOJ Inventory System”. The original resource was released on here a while ago before it was removed shortly after.

gg.

3 Likes

lemme grab popcorn before he responds :stuck_out_tongue:

1 Like

Copy/Paste ~~ Literally NUIs still called DOJ…

Edit the citmp-server.yml file located in the main folder

You are so incompetent that you still refer to the server config file as the citmp yml.
This has to be straight up copied from somewhere, seemingly without any expressive permission.

this was a different version for me you have to do restart MGCRPInventory in your console or rcon to get /search to work and second of all it didnt even work because i got it from here which i am currently going t give him credit in a min.

here is the link: Search Inventory

it wasnt locked when i got it.

and that was for cfx not fx and also if you added the porting code you would have to figure out how to fix it yourself.

Hi, the actual developer of the DOJInventory script here (Proof: below). The person who uploaded it where you linked is also not me. (awkward)
http://puu.sh/xEIxb/92e0b7c0c4.png
http://puu.sh/xEIyw/be47c1d820.png)

These scripts were removed BY REQUEST from DOJ MANAGMENT after i released them to the public, i originally created them for use purely on that server but they ignored me for two weeks. After I uploaded here they wanted them and I was stupid enough to do so . Once I left i released them (besides that one) to the public again. I didn’t release it because i personally thought it was a crappy inventory system and didn’t want to rename everything.

Your readme is 95% mine and most of this code is mine, and then you license it as GPL AND you credit someone else for the original code?

http://puu.sh/xEINE/5664a1ad68.png
http://puu.sh/xEIOf/d72509ec23.png
http://puu.sh/xEIPz/58cbbd1ef2.png

http://puu.sh/xEJdP/4d5ea23810.png

Heres my google drive link for it.

https://drive.google.com/open?id=0B5G3FfNOy93rakNtRWNCUTB0dUU

The fix for CFX-FX server is literally just fixing the splitString function like it says on the wiki, anyone can do that.

6 Likes

Given the circumstances and how questionable this is… I’m going to remove it. Nobody should be “releasing” anything if its not even theirs. That is plagiarism. That is illegal. That is a dick move.