[DEPRECATED] Inventory inspired by Trsak ❤

How to change this to $ and the . to a , ?
6515191bb2e2ebbb46c5b72384f95956

1 Like

In the .js file :slight_smile:
We added an USD example FiveM-Resources/inventory.js at master · dutchplayers/FiveM-Resources · GitHub

Shop prices:

// EUR HERE
function setCost(item) {
    cost = item.price
    if (item.price == 0){
        cost = "€" + item.price
    }
    if (item.price > 0) {
        cost = "€" + item.price
    }
    return cost;
}
//USD FORMAT BELOW HERE
function setCost(item) {
   cost = item.price
    if (item.price == 0){
        cost = item.price + "$"
    }
    if (item.price > 0) {
        cost = item.price + "$"
   }
    return cost;
}

Total money:

//EUR HERE
function formatMoney(number) {
	return number.toLocaleString('nl-NL', { style: 'currency', currency: 'EUR' });
}

//USD FORMAT BELOW HERE
function formatMoney(number) {
	return number.toLocaleString('en-US', { style: 'currency', currency: 'USD' });
`}
``

Keep getting this error

1 Like

Try this MySQL: GitHub - dutchplayers/MySQL-for-ESX-Inventory-HUD

And be sure to run ESX 1.2 (v1-final)

We still need database for addon account data locker , datastore locker, items locker

Because i cant try to put item

People still use 1.1.0 lol :face_vomiting:

1 Like

yes, because weights without limits was terrible idea.

1 Like

but, maxWeight is a limit

how to fix this? i cant withdraw my weapon

does this use weight or count? cause all my items in the db are for limit/count

Be sure to use the weapon as item. Do not use /giveweapon, but use /giveitem

This is currently only for ESX 1.2

Why did i do this poll again?

Because we would LOVE for this to work for 1.1 :slight_smile:

Oof i’ve created more work :stuck_out_tongue:

Oke then

1 Like

ya a version for count/limit and not weight would be nice.

This will most likely 99.9% never happen from the ESX organization. The ESX team currently are all focused on ESX 2.0 and none of the devs are worried about anything but ESX 2.0. While we provide support for 1.x resources, none of us are actively improving them currently. PR’e get accepted and added still but that’s the extent of the work on old ESX.

EXM was the closet thing to what you mentioned but that’s been otherwise abandoned. People have managed to add both a item limit and weight to their 1.1 ESX so it’s possible to do it:

1 Like

my protection is no longer working they were able to bring me down