LGF Document System
Available Document Types
- ID Card (
license_id) - Driving License (
license_car) - Weapon License (
license_weapon) - Boat License (
license_boat)
Features
- Job Restrictions: Only specific jobs (like police) can create certain documents.
- Dynamic Zones: Interaction points for document management.
- Customizable: Add or modify document types via
Config.lua.
Dependency
ox_inventoryscreenshot-basicorMugShotBase64
Framework Supported
ESXQBOXLegacyCore
Installation
-
Clone the Resource or Donwload It
Add this resource to yourresourcesdirectory in your FiveM server. -
Add Items to ox_inventory
To add the documents as items that can be managed by players, modify theitems.luafile in theox_inventory/data/items.luadirectory as follows:return { ['license_id'] = { label = 'ID Card', weight = 100, consume = 0, description = 'Your Personal Document', client = { export = 'LGF_DocumentSystem.manageDocument' } }, ['license_car'] = { label = 'Drive Card', weight = 150, consume = 0, description = 'Your Driving License', client = { export = 'LGF_DocumentSystem.manageDocument' } }, ['license_weapon'] = { label = 'Weapon License', weight = 200, consume = 0, description = 'License to Carry Weapons', client = { export = 'LGF_DocumentSystem.manageDocument' } }, ['license_boat'] = { label = 'License Boat', weight = 120, consume = 0, description = 'License to Operate Boats', client = { export = 'LGF_DocumentSystem.manageDocument' } }, } -
Configure Documents and Zone in
Config.luaAdd your document types in the Config.lua file. -
Add your Language
server.cfgEnsure Language Files are Present: Make sure you have the necessary localization files. You should have a file named %s.json in the locales directory of your LGF_DocumentSystem.
setr LGF_DocumentSystem:GetLocales "it"