Skip to content

NeMyOriginal/esx-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esx-printer

Convert of qb-printer You need to change notify to your liking

Requirements

ESX_LEGACY OX_INVENTORY qtarget

qtarget event and item

local printers = {
		`prop_printer_01`,
		`prop_printer_02`,
		`v_res_printer`
	}
	AddTargetModel(printers, {
        options = {
            {
                event = "useprinter",
                icon = "fas fa-circle",
                label = "Use Printer",
            },
        },
            
        distance = 2.5
    })```
    
Item

```['printerdocument'] = {
		label = 'Printed Document',
		weight = 10,
		stack = false,
		close = true,
		consume = 0
    },

Add to ox_inventory/modules/items/client.lua

Item('printerdocument', function(data, slot)
	TriggerEvent('qb-printer:client:UseDocument', slot.metadata.url)
	TriggerEvent('ox_inventory:closeInventory')
end)

About

Convert of qb-printer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published