Page 1 of 2

Future update: Item rework

Posted: November 6th, 2023, 4:18 pm
by ThaCrypte
Future update: Item rework

Rather than posting vague screenshots of cargobobs in the sneak peek channel on Discord, I've decided to make a informative thread regarding a upcoming update that I've been working on. In this thread, I'll be going into details about why we're making these changes, what will change and more. This thread is also meant to gather some early feedback. You could consider this thread as some kind of "dev blog".

Why?
Simple. Currently items and item information are stored all over the place. This makes changing things involving items more difficult than it should be. I had the idea in mind for quite some time and was doubtfull to get started. However looking through certain suggestions convinced me to pull the trigger.

And before you say: "Instead of doing this you could be doing X Y instead!", the item rework is on a seperate branch and is basically something I work on when I have the time to. This means I can keep updating the current gamemode in parralel to the item rework without too much problems. The "main" branch is still taking my priority.

Commands
For the most part, commands are mostly the same. Some commands, however, might have things switched around a little. E.g. /houselocker store materials 3000 has been changed to /houselocker store 3000 materials. /houselocker now also shows you an UI that updates whenever you take/deposit an item.
Other than that, /usedrugs has been removed and replaced with /use <item name>. This command is only used for drugs as of the time of writing this thread, but will be used for other and newer items.

/inventory has also been changed, as it now shows you an UI with all your items.

Selecting an item in the new UI will present you with more information. (As seen in the screenshots below).

Items
All items become their own entitity rather than being stored randomly in the gamemode. From toolkits to bombs. Items can have different parameters, such as being tradeable, stackable (can have multiple in a single inventory slot), wether they should drop on death/disconnect, the max amount a player may have in their inventory, etc.

Item effects are now dynamic as well (cuz why not). We can easily add healing, damaging, commands, messages, to items. I also added a way to reload items whilst in-game, meaning we could essentially create new items with different effects without having to recompile the gamemode. That being said, all items can now be used through /use. Their older commands (/toolkit, etc) still work however /usedrugs is deprecated and removed.

We opted out of making weapons and ammo seperated items for now.

All the code that involves items, from buying them in businesses to using them has been changed.

Inventories
Inventories have been entirely reworked. It is now 50x easier to add an inventory to an entity(house/player e.g.) and to add interactions. You can use them mostly the same as you always used them.

Player inventory
Player inventories have a default size of 15 inventory slots. Premium (lvl 5+) members get an additional 5 slots.
Image

House locker
House lockers have a default size of 30 inventory slots. You are unable to deposit untradable items in your house locker.
Image

Frisking a player
We decided to keep frisking pretty much the same as it is now, except with more items and details.
Image

Testing
Due to the scale of this update, and how it affects the economy, we've been testing and will continue to test to ensure all works as intended. We might host a public beta in the very near future to speed up this process.

What's left?
A lot. Mostly testing to ensure everything is covered and there won't be any bugs that cause players to lose items. I'm also looking at ways to display certain item variables, such as if an item is illegal, if it is tradeable, etc.

Re: Future update: Item rework

Posted: November 6th, 2023, 4:43 pm
by HULK
Fix war system 🚴

Re: Future update: Item rework

Posted: November 6th, 2023, 4:45 pm
by axe
feels like those russian servers

Re: Future update: Item rework

Posted: November 6th, 2023, 4:52 pm
by Resick
makes a few things easier like the houselocker thingy maybe u can make 2 split inventories when you're storing stuff in your houselocker or giving stuff to someone

Re: Future update: Item rework

Posted: November 6th, 2023, 5:04 pm
by Ralph_
ui could use some rework otherwise looks good, i think it could go along well with an overhauled drug system (hoping we see that in the near future tbh)

Re: Future update: Item rework

Posted: November 6th, 2023, 5:21 pm
by youno
would be nice if you made katana & bat a craftable item for 50/100 materials and make it count as a weapon instead of it dissapearing when you /takeguns or /throwgun

Re: Future update: Item rework

Posted: November 6th, 2023, 5:42 pm
by axe
youno wrote: ↑
November 6th, 2023, 5:21 pm
would be nice if you made katana & bat a craftable item for 50/100 materials and make it count as a weapon instead of it dissapearing when you /takeguns or /throwgun
Why

Re: Future update: Item rework

Posted: November 6th, 2023, 5:57 pm
by Omar
Resick wrote: ↑
November 6th, 2023, 4:52 pm
makes a few things easier like the houselocker thingy maybe u can make 2 split inventories when you're storing stuff in your houselocker or giving stuff to someone

Re: Future update: Item rework

Posted: November 6th, 2023, 6:04 pm
by Omar
they say "don't change something that works", fixing war system now is more important

Re: Future update: Item rework

Posted: November 6th, 2023, 6:16 pm
by CruzTattaglia
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
viewtopic.php?p=2558915#p2558915

Re: Future update: Item rework

Posted: November 6th, 2023, 6:19 pm
by Omar
CruzTattaglia wrote: ↑
November 6th, 2023, 6:16 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
viewtopic.php?p=2558915#p2558915
nothing has changed, 50 percent death free difference is ridiculous

Re: Future update: Item rework

Posted: November 6th, 2023, 6:24 pm
by Connorious
Omar wrote: ↑
November 6th, 2023, 6:19 pm
CruzTattaglia wrote: ↑
November 6th, 2023, 6:16 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
viewtopic.php?p=2558915#p2558915
nothing has changed, 50 percent death free difference is ridiculous
stop crying please its sad to see

Re: Future update: Item rework

Posted: November 6th, 2023, 6:26 pm
by Omar
Connorious wrote: ↑
November 6th, 2023, 6:24 pm
Omar wrote: ↑
November 6th, 2023, 6:19 pm
CruzTattaglia wrote: ↑
November 6th, 2023, 6:16 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
viewtopic.php?p=2558915#p2558915
nothing has changed, 50 percent death free difference is ridiculous
stop crying please its sad to see
you're delusional if you think something has changed.

Re: Future update: Item rework

Posted: November 6th, 2023, 7:29 pm
by swagb1tches
Good update, keep up the good work

Re: Future update: Item rework

Posted: November 6th, 2023, 8:22 pm
by Donald
looks good, ui could do some work being more neat and maybe adding some filters like sorting by amount, newest and increasing/decreasing fontsize

Re: Future update: Item rework

Posted: November 6th, 2023, 8:25 pm
by ThaCrypte
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
The saying is "Don't fix something that ain't broken". There's also another saying that says "Read before you speak".

Image

There are more reasons to rewrite code other than just fixing bugs. Which yet again is in the main thread.

Re: Future update: Item rework

Posted: November 6th, 2023, 9:35 pm
by Omar
ThaCrypte wrote: ↑
November 6th, 2023, 8:25 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
The saying is "Don't fix something that ain't broken". There's also another saying that says "Read before you speak".

Image

There are more reasons to rewrite code other than just fixing bugs. Which yet again is in the main thread.
all im saying is , its not as important for imrp people as the warring system rn which has been slightly changed or not changed at all

Re: Future update: Item rework

Posted: November 6th, 2023, 11:56 pm
by Gaius
Do you really need all that money? You don't even play actively. Stop hoarding all that cash and wire it to San Andreas Police Department's slush fund

Re: Future update: Item rework

Posted: November 7th, 2023, 12:22 am
by Liroy
Good work mate, keep it up

Re: Future update: Item rework

Posted: November 7th, 2023, 12:49 am
by Connorious
Omar wrote: ↑
November 6th, 2023, 9:35 pm
ThaCrypte wrote: ↑
November 6th, 2023, 8:25 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
The saying is "Don't fix something that ain't broken". There's also another saying that says "Read before you speak".

Image

There are more reasons to rewrite code other than just fixing bugs. Which yet again is in the main thread.
all im saying is , its not as important for imrp people as the warring system rn which has been slightly changed or not changed at all
SHUT THE FUCK UP YOU CRYING PRICK YOUR FACTION IS DOGSHIT ANYWAY WHO WILL YOU WAR ? NOOSE ?
.

nvm noose would smoke ur ass too

Re: Future update: Item rework

Posted: November 7th, 2023, 8:17 am
by TuCo
HULK wrote: ↑
November 6th, 2023, 4:43 pm
Fix war system 🚴
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
what's the point of worrying about the war system if you're not getting into it? dunderheads

Re: Future update: Item rework

Posted: November 7th, 2023, 12:56 pm
by Omar
Connorious wrote: ↑
November 7th, 2023, 12:49 am
Omar wrote: ↑
November 6th, 2023, 9:35 pm
ThaCrypte wrote: ↑
November 6th, 2023, 8:25 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
The saying is "Don't fix something that ain't broken". There's also another saying that says "Read before you speak".

Image

There are more reasons to rewrite code other than just fixing bugs. Which yet again is in the main thread.
all im saying is , its not as important for imrp people as the warring system rn which has been slightly changed or not changed at all
SHUT THE FUCK UP YOU CRYING PRICK YOUR FACTION IS DOGSHIT ANYWAY WHO WILL YOU WAR ? NOOSE ?
.

nvm noose would smoke ur ass too
fabio, you're top 5 highest iq in leone with minus 10.

Re: Future update: Item rework

Posted: November 7th, 2023, 2:30 pm
by CruzTattaglia
Omar wrote: ↑
November 7th, 2023, 12:56 pm
fabio, you're top 5 highest iq in leone with minus 10.
Image

Re: Future update: Item rework

Posted: November 7th, 2023, 3:58 pm
by Connorious
Omar wrote: ↑
November 7th, 2023, 12:56 pm
Connorious wrote: ↑
November 7th, 2023, 12:49 am
Omar wrote: ↑
November 6th, 2023, 9:35 pm
ThaCrypte wrote: ↑
November 6th, 2023, 8:25 pm
Omar wrote: ↑
November 6th, 2023, 6:04 pm
they say "don't change something that works", fixing war system now is more important
The saying is "Don't fix something that ain't broken". There's also another saying that says "Read before you speak".

Image

There are more reasons to rewrite code other than just fixing bugs. Which yet again is in the main thread.
all im saying is , its not as important for imrp people as the warring system rn which has been slightly changed or not changed at all
SHUT THE FUCK UP YOU CRYING PRICK YOUR FACTION IS DOGSHIT ANYWAY WHO WILL YOU WAR ? NOOSE ?
.

nvm noose would smoke ur ass too
fabio, you're top 5 highest iq in leone with minus 10.
and yet your faction is still afraid to war a congregation of retards, says it all really you pathetic neek

Re: Future update: Item rework

Posted: November 7th, 2023, 4:04 pm
by tisler
Omar wrote: ↑
November 7th, 2023, 12:56 pm

fabio, you're top 5 highest iq in leone with minus 10.
LOLLLLllllll

Re: Future update: Item rework

Posted: November 7th, 2023, 4:07 pm
by Ralph_
Connorious wrote: ↑
November 7th, 2023, 3:58 pm
and yet your faction is still afraid to war a congregation of retards, says it all really you pathetic neek
retired useless fag now a part time keyboard warrior on 2007 community forum

how the 'mighty' has fallen

:clown:

Re: Future update: Item rework

Posted: November 7th, 2023, 4:13 pm
by Connorious
Ralph_ wrote: ↑
November 7th, 2023, 4:07 pm
Connorious wrote: ↑
November 7th, 2023, 3:58 pm
and yet your faction is still afraid to war a congregation of retards, says it all really you pathetic neek
retired useless fag now a part time keyboard warrior on 2007 community forum

how the 'mighty' has fallen

:clown:
Image

keep going buddy soon ull be a helper

Re: Future update: Item rework

Posted: November 7th, 2023, 4:15 pm
by Ralph_
Connorious wrote: ↑
November 7th, 2023, 4:13 pm
Ralph_ wrote: ↑
November 7th, 2023, 4:07 pm
Connorious wrote: ↑
November 7th, 2023, 3:58 pm
and yet your faction is still afraid to war a congregation of retards, says it all really you pathetic neek
retired useless fag now a part time keyboard warrior on 2007 community forum

how the 'mighty' has fallen

:clown:
Image

keep going buddy soon ull be a helper
atleast i be useful rofl - thankfully the garbage got taken out for good

blud was merely a placeholder :D

Re: Future update: Item rework

Posted: November 7th, 2023, 4:18 pm
by Ralph_
connor on a side note im relieved someone aint gonna be fishing for logs anymore iykyk :D

Re: Future update: Item rework

Posted: November 7th, 2023, 4:35 pm
by vance
Connorious wrote: ↑
November 7th, 2023, 3:58 pm
Omar wrote: ↑
November 7th, 2023, 12:56 pm
Connorious wrote: ↑
November 7th, 2023, 12:49 am
Omar wrote: ↑
November 6th, 2023, 9:35 pm
ThaCrypte wrote: ↑
November 6th, 2023, 8:25 pm


The saying is "Don't fix something that ain't broken". There's also another saying that says "Read before you speak".

Image

There are more reasons to rewrite code other than just fixing bugs. Which yet again is in the main thread.
all im saying is , its not as important for imrp people as the warring system rn which has been slightly changed or not changed at all
SHUT THE FUCK UP YOU CRYING PRICK YOUR FACTION IS DOGSHIT ANYWAY WHO WILL YOU WAR ? NOOSE ?
.

nvm noose would smoke ur ass too
fabio, you're top 5 highest iq in leone with minus 10.
and yet your faction is still afraid to war a congregation of retards, says it all really you pathetic neek
:lol: :lol: :lol: :lol: