Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

RT @NOdab88: Just Cause Pro Skater 2... has it been 3 years already? #THPS #JustCause @tonyhawk @justcause @PlayStation @jc2mpdev https://t…

6 months ago

April 29, 2017, 07:37:20 pm

Author Topic: Script to Keep Inventory on Death and Relogin?  (Read 148 times)

JRNetwork

  • Newbie
  • *
  • Posts: 3
    • View Profile
Script to Keep Inventory on Death and Relogin?
« on: April 11, 2017, 12:24:54 pm »
Hey guys, Just working on my multiplayer server and I'm looking to see if there is a script to keep inventory on death, relogin etc.

If not ill look at possibly coding one in my spare time but I dont have much time right now in my life so I was hoping something was already created :)

Thanks guys,
Jamie

Just realised this is in the wrong section of the forum (silly me) Can a mod move it for me please. Thanks

Dev_34

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Re: Script to Keep Inventory on Death and Relogin?
« Reply #1 on: April 11, 2017, 09:58:32 pm »
Hey, you can find a working inventory system here: https://www.jc-mp.com/forums/index.php/topic,5966.msg43038.html#msg43038

The inventory system is part of a large server-wide gamemode. Unfortunately, you would have significant difficulty ripping it out of the the other scripts because almost all of the other ones use the inventory system in some way. It wouldn't be too hard to build one yourself; you just need to use SQL to store and retrieve data, move that data, represent that data on the client using some UI, and make sure your system is dynamic. I'm happy to answer any questions you have on building a good inventory system, but I can't offer my help in isolating certain scripts from the FC Script Pack for your use.

Good luck!
« Last Edit: April 11, 2017, 10:04:10 pm by Dev_34 »