#ps-inventory weapon rarities

123 messages · Page 1 of 1 (latest)

eager dew
#

Thanks to @outer coral for the np 4.0 redesign of ps-inventory I've been working on something for my zombie server, where each weapon can have multiple different rarities, so for example the 1 item of weapon_pistol can have any rarity Common | Uncommon | Rare | Legendary | Exotic these rarities are stored as metadata for the item. Then in the inventory side, in the javascript, I have it so it adds a radial gradient around the item depending on the rarity.

outer coral
#

This looks pretty damn good, This looks like its gonna bring that dying light feeling to FiveM in a unique way. I haven't really seen much zombie servers so I'm not sure but to me it looks pretty unique

eager dew
# outer coral This looks pretty damn good, This looks like its gonna bring that dying light fe...

I appreciate it! this is my first attempt at doing anything as far as writing code in javascript, it took me all day to figure it out lol. The only issue I'm having which isn't a big deal, is when you move the weapon to another slot, the background gets removed until you re-open your inventory.

Also you can ignore the fact that the word Backpack is underneath my inventory slots, this inventory doesn't play nice with ultrawide screens appearantly lol

#

Believe it or not, I've never played dying light lol

outer coral
#

Dude dying light is so good, You've kinda nailed what they did in dying light 2 cause they had weapon rarities and they color coded them the same way you did. So I thought that was pretty cool to see

eager dew
#

But I mean we have Base building, crafting, looting, and I'm currently working on V2 where we're going to do a mix between PvP and RP.

So there will be a zone within the city that allows players to go into and it straight KOS anything outside of that is RP, we're gonna have jobs like the Militia(something like RP cities PD), Medics, Mechanics, ownable Pawnshops, ownable shops. I've got some big plans, just slowly getting there lol

#

I added an Infection Line to the player body image cause I've also got a system in place in V2 where you get a chance of getting infected when you get hit by a zombie

outer coral
outer coral
eager dew
outer coral
#

bet send me a fr if you want too

eager dew
oblique phoenix
eager dew
gritty grove
#

Looks really goor in working on v2 off zombie server this would look sick. Do you use multiple weapons items for rarerity or something else?

eager dew
gritty grove
eager dew
oblique phoenix
#

i make it to check weapon_ how you did for single item ?

timid shell
# oblique phoenix

Hey, does that inventory show all pockets when get robbed?

Could you test it?

RegisterCommand('touchme', function()
    local ped = PlayerPedId()
    QBCore.Functions.Progressbar("robbingme", "Touching myself...", 1000, false, true, {
        disableMovement = true,
        disableCarMovement = true,
        disableMouse = false,
        disableCombat = true,
    }, {}, {}, {}, function() -- Done
        TriggerServerEvent("inventory:server:OpenInventory", "otherplayer", GetPlayerServerId(ped))
    end)
end, false)
gritty grove
eager dew
eager dew
gritty grove
#

Im waiting for it to see if im gonna dump my Core Inventory for it haha

oblique phoenix
eager dew
gritty grove
#

oh to bad

#

did you release the V1 for public?

oblique phoenix
#
background: radial-gradient(circle, rgba(0,255,149,0.4206057422969187) 0%, rgba(255,245,0,0) 0%, rgba(244,255,1,0.3596383426966292) 53%, rgba(255,245,0,0.7880091292134832) 100%); 

```this what i use
eager dew
oblique phoenix
#

that looks clean

eager dew
eager dew
oblique phoenix
#

i also add shine to it

#
.item-colorsss {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0,255,149,0.4206057422969187) 0%, rgba(255,245,0,0) 0%, rgba(244,255,1,0.3596383426966292) 53%, rgba(255,245,0,0.7880091292134832) 100%)!important;
}

.item-colorsss::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.349);
    animation: linear-shine 1s linear infinite; /* Linear shine animation */
}

@keyframes linear-shine {
    0% {
        left: -200%;
    }
    20% {
        left: -150%;
    }
    50% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}```
eager dew
gritty grove
oblique phoenix
#

i will share small video

eager dew
eager dew
oblique phoenix
eager dew
oblique phoenix
#

yeah you can do that

eager dew
oblique phoenix
#

ps

eager dew
# oblique phoenix ps

I got some plans I wanna do eith it. Like tie the backpack slots to clothing. So you only get the extra slots if your wearing a backpack

oblique phoenix
#

thats nice idea

gritty grove
#

that looks sick @oblique phoenix is this the inventory from your git?

oblique phoenix
#

i use era-outfits

eager dew
eager dew
oblique phoenix
#

not it make clothing like item i am also using illenium

eager dew
oblique phoenix
#

yeah

eager dew
eager dew
oblique phoenix
#

i am using it for so long only issue i have with comnt its working only with radialmenu

oblique phoenix
#

when i do /hat its not working that way

#

its working only with radialmenu

eager dew
oblique phoenix
#

its because its only setup for radial menu

eager dew
oblique phoenix
#

👍

eager dew
bleak hollow
#

rarity using wow/diablo concept

eager dew
eager dew
#

@outer coral I have all the slots working so when you add items to your inventory it uses all the slots, except the backpack, I'm still working on it

eager dew
gritty grove
#

does rarity work by default in ps-inventory or only the nopixel 4.0 one im so confused

bleak hollow
#

Nope.

gritty grove
# bleak hollow Nope.

can you please explain me how the rarity works is it metadata based or something extra added tot the shared/items.lua?

bleak hollow
#

shared/items.lua This one and javascript (inventory)

outer coral
#

🥳 🔥 🙏

gritty grove
eager dew
eager dew
#

I can send you the info to update your github

outer coral
#

Thats up to you but I've been workin on an inventory 2.0 cause I made a lot of errors the first time around that I wanna fix

eager dew
# outer coral Thats up to you but I've been workin on an inventory 2.0 cause I made a lot of e...

Lol alright I'll send it your way when I get home from work.

The issue was the for i = loops in the Javascript causing the slot numbers to be random. But the way I did it is your able to adjust the Config.MaxInventorySlots to whatever you desire and are still able to to keep all slots working.

I then added a Config.Backpacks that gets the backpack component id's and gives a configurable amount of slots for that component. Could probably even set it up so if the player doesn't have pants then remove x amount of slots from the player pockets lol

outer coral
#

It keeps reminding me more and more of dying light

eager dew
timid shell
#

I waaaaant 😢

#

Tahts actually amazing xDD

oblique phoenix
#

only this part not rob able now

timid shell
#

could it be possible to select the amount of slots for "otherinventory" and which slots to select?

crystal sierra
#

i beg for this to get released

eager dew
# oblique phoenix

I haven't been able to test which slots are robble and not robable on mine since I've fixed the slot numbers on mine. No one's been around for me to test it lol

eager dew
crystal sierra
#

Does this have the rarities on it ?

eager dew
crystal sierra
#

ahh ok ill have to wait and see if your going to release that

trail parcel
timid shell
trail parcel
#

Okey

#

Cheers pallow

timid shell
#
RegisterCommand('touchme', function()
    local ped = PlayerPedId()
    QBCore.Functions.Progressbar("robbingme", "Touching myself...", 1000, false, true, {
        disableMovement = true,
        disableCarMovement = true,
        disableMouse = false,
        disableCombat = true,
    }, {}, {}, {}, function() -- Done
        TriggerServerEvent("inventory:server:OpenInventory", "otherplayer", GetPlayerServerId(ped))
    end)
end, false)

Can use this command to test it maybe you can find a work around

trail parcel
#

Hehe fun too see that he used my visual items on ground drop for lj-inventory 😄 fun too see stuff getting used

eager dew
eager dew
eager dew
crystal sierra
#

This seems to be the issue I’m getting or you have to go right up in to the corner and then it allows you to drag them

crystal sierra
#

When your trying to move items

crystal sierra
#

this bottom one on the right by the foot when you hover over it nothing happens

smoky flicker
#

I’ll teach 10individuals to earn $30k more within 72 hours but you will pay me 10% of your profit when you receive it. Note only interested people should apply, drop a message let's get started by asking (HOW)

eager dew
crystal sierra
crystal sierra
#

what back pack script do you use ?

eager dew