
💻Installation
Dependencies
Installing the resource
Make sure you have the dependencies listed above installed.
Extract the contents of the archive to your resources folder.
Ensure zat-washmoney on the server.cfg.
If You are using For ox_inventory :
under ox_inventory\modules\items\client.lua:
Item('washmachine', function(data, slot)
local model = "bkr_prop_prtmachine_dryer_op"
local id = "WashMachine_"..math.random(111111,999999)
TriggerEvent("zat-washmoney:client:PlaceTable", id, model)
end)
If you are using qs-inventory :
under qs-inventory/server/custom/misc/createuseableitems.lua :
CreateUsableItem('washmachine', function(source, item) local playerPed = GetPlayerPed(source) local playerCoords = GetEntityCoords(playerPed) local players = FrameworkGetPlayers() local model = "bkr_prop_prtmachine_dryer_op" local id = "WashMachine_"..math.random(111111,999999) TriggerClientEvent("zat-washmoney:client:PlaceTable", source, id, model) end)
If You are using QS inventory : Add this under qs-inventory/shared/items.lua :
['washmachine'] = { ['name'] = 'washmachine', ['label'] = 'Washmachine', ['weight'] = 0, ['type'] = 'item', ['image'] = 'Washmachine.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '...' }, ['rollcash'] = { ['name'] = 'rollcash', ['label'] = 'Rolled Money', ['weight'] = 0, ['type'] = 'item', ['image'] = 'rollcash.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '...' },
add this aswell under qs-invetory/server/custom/misc/CreateUseableItem.lua:
CreateUsableItem('washmachine', function(source, item) local playerPed = GetPlayerPed(source) local playerCoords = GetEntityCoords(playerPed) local players = FrameworkGetPlayers() local model = "bkr_prop_prtmachine_dryer_op" local id = "WashMachine_"..math.random(111111,999999) TriggerClientEvent("zat-washmoney:client:PlaceTable", source, id, model) end)
add this under qs-inventory/config/metadata.js: (line 280)
}else if (itemData.name == "rollcash") { $(".item-info-title").html("<p>" + `${itemData.info.label || label}` + "</p>"); $(".item-info-description").html( "<p><strong>Worth: </strong><span>$" + itemData.info.worth + "</span></p>" );
Add washmahine.sql into the database.
Last updated