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, jaksam_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, try the following options:
If using qb-core, 99% of people having this issue is because they skip this step: Items
Verify you don't have other script already using an item named 'laptop', if that's the case then you need to change the item name in
av_laptop/config/config.lua > Config.LaptopItem. Change it to any other name you want, for exampleav_laptopMake sure to add this new item to your Framework/Inventory item list.Verify av_laptop is installed correctly and running without errors, go to your server console (txadmin) and restart av_laptop, it should restart without errors and it should print your current inventory, framework and target (if using any).
Last updated