Money As Item in Ox Inventory

This Is about money as item buttons in ox_inventory

Ox_Inventory Part:

find money item in ox_inventory/data/items.lua which looks like this by default

Now Just Replace it With this

-- this will make three button 1000,10000, 1000000
['money'] = {
        label = 'Money',
		buttons = {
			{
				label = "Place 1000 on Ground",
				action = function(slot)
					exports.ox_inventory:closeInventory();
                    TriggerEvent("fs_placeables:placeitemhook", "money", 1000);
				end
			},
			{
				label = "Place 10000 on Ground",
				action = function(slot)
					exports.ox_inventory:closeInventory();
                    TriggerEvent("fs_placeables:placeitemhook", "money", 10000);
				end
			},
			{
				label = "Place 1000000 on Ground",
				action = function(slot)
					exports.ox_inventory:closeInventory();
                    TriggerEvent("fs_placeables:placeitemhook", "money", 1000000);
				end
			},
		}
	},

fs_placeables Part:

this should be added under Config.Items in fs_placeables/config.lua


 ['money'] = {
        [1000] = `prop_cash_pile_01`,
        [10000] = `prop_money_bag_01`,
        [1000000] = `prop_cash_case_01`,
    },

Last updated