Installation
Dependencies
The main dependency is ox_lib, make sure to download the compiled resource and NOT the source code, the one you need to download is named ox_lib.zip Download here: https://github.com/communityox/ox_lib/releases/latest

Always download the latest version ox_lib needs to be started before any of my scripts in your server.cfg
Inventories
The only compatible inventories are: qb-inventory, origen_inventory, quasar inventory, ox_inventory, tgiann-inventory, ps-inventory and codem-inventory.
Inspired/custom inventories or old versions are NOT supported. > Not every inventory needs extra installation steps for laptop to work.
Frameworks
Only supported Frameworks are: ESX, QBCore and Qbox
If using qbox make sure to uncomment the qbox imports in av_laptop/fxmanifest.lua
If you are not using any of this Frameworks or you are using some modified version read Custom Framework/Inventory
Quasar Phone
Run this query only if you are using the qs-smartphone-pro script:
ALTER TABLE phone_gallery
ADD COLUMN label LONGTEXT;Setup
Please read the config.lua, all options have a comment that explains how it works.
The script will auto detect your Framework, it will "fail" if your qb-core or es_extended are named differently, if that's your case change the Framework manually in config/_framework.lua and any other file where is needed (use a search word function to find what to edit).
Open _ITEMS folder, inside you can find a file named items.md, inside you will find some needed items and you have to copy/paste into your Framework/Inventory to register the items.
Note: For some reason qb-core and some other inventories have the item laptop already registered, make sure to delete it and use the one provided in items.md
Common issues
I use the laptop item but nothing happens
Verify your server console (not F8 console that's client), if there's any error saying you are missing some export or X export doesn't exist in X inventory, do the following: - Open config/_inventory.lua and set your inventory resource name in Config.Inventory - Restart the script - The error remains? You are using an inventory that is not compatible: You are either using an old version of the inventory or you are using an inspired/based inventory, I only support official versions. - Is your inventory supported but it keeps printing a missing export error? You need to read and follow the Installation > Inventory section.
If there's no prints server side? Use command
/debug av_laptopthis will enable debug mode in av_laptop without need a resource restart, use the item again, if you DON'T see any print in your server console is because the item is already registered in a different resource OR you already have the laptop item registered in your inventory/framework. - Solution: Change the item name in Config and add it to your Framework/Inventory OR delete the old item info from your Framework/Inventory and add the one provided in the _ITEMS folder.
Last updated