📃Installation

Installation for KS-Documents

1

DRAG AND DROP

Drag KS-Documents into your resources folder.

2

Ensure the script is started in your server.cfg

ensure KS-Documents

3

🛠️ ESX Installation

ALTER TABLE `users` ADD COLUMN `photo` LONGTEXT DEFAULT NULL;
4

Install dependencies if not already present:

5

Add This Item In OX_Inventory

['idcard'] = {
	label = "Carta d'Identita",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.idcard'
	},
	buttons = {
            {
                label = 'Mostra',
                action = function(slot)
                    TriggerEvent('ox_inventory:closeInventory')
                    exports['KS-Documents']:showNearbyDocument(slot)
                end
            }
        },
},

['photocam'] = {
	label = "Fotocamera",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.makephoto'
	},
},

['portod'] = {
	label = "Porto d'Armi",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.weaponslicense'
	},
	buttons = {
            {
                label = 'Mostra',
                action = function(slot)
                    TriggerEvent('ox_inventory:closeInventory')
                    exports['KS-Documents']:showNearbyDocument(slot)
                end
            }
        },
},

['teserino'] = {
	label = "Tesserino Medico",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.tesserinoMedico'
	},
	buttons = {
            {
                label = 'Mostra',
                action = function(slot)
                    TriggerEvent('ox_inventory:closeInventory')
                    exports['KS-Documents']:showNearbyDocument(slot)
                end
            }
        },
},

['patente'] = {
	label = "Patente",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.driverlicense'
	},
	buttons = {
            {
                label = 'Mostra',
                action = function(slot)
                    TriggerEvent('ox_inventory:closeInventory')
                    exports['KS-Documents']:showNearbyDocument(slot)
                end
            }
        },
},

['tespula'] = {
	label = "Tesserino Polizia",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.badgepolice'
	},
	buttons = {
            {
                label = 'Mostra',
                action = function(slot)
                    TriggerEvent('ox_inventory:closeInventory')
                    exports['KS-Documents']:showNearbyDocument(slot)
                end
            }
        },
},

['shildpol'] = {
	label = "Distintivo Polizia",
	weight = 100,
	stack = false,
	close = true,
	server = {
		export = 'KS-Documents.shildpol'
	},
	buttons = {
            {
                label = 'Mostra',
                action = function(slot)
                    TriggerEvent('ox_inventory:closeInventory')
                    exports['KS-Documents']:showNearbyDocument(slot)
                end
            }
        },
},
['tabletfalsario'] = {
		label = "tablet",
		weight = 1,
		stack = false,
		client = {
			export = 'KS-Documents.FalsarioapriUI'
		},
	},
6

Configure the script in the KS-Documents/shared/config.lua file based on your server's needs.

📬 Need Help or Support?

If you have any questions, need help with setup, or want to report a bug, feel free to join our support Discord:

👉 Join our Discord server

We're happy to help and welcome all feedback and suggestions!

Last updated