AW ScriptsDocs
AW Phone

Installation

#Requirements

Requirement Status
qb-core, qbx_core or es_extended Required
oxmysql Required
pma-voice (calls) Required
OneSync (on by default on current servers) Required
xsound (optional, Music speaker mode) Optional
Any inventory: ox_inventory, qb-inventory, qs / ps inventories that use the framework items, ESX default Required

#Installation

  1. Stop or remove your old phone (qb-phone or any other).
  2. Put aw_phone in your resources folder and add it after your framework, oxmysql and pma-voice:
    server.cfg
    ensure aw_phone
    
  3. The phone item must exist in your items. QBCore, Qbox and ox_inventory have it. If yours is missing, the install/ folder has the item for ox_inventory, qb-core / qs-inventory and an SQL file for the ESX default inventory, plus a phone image in install/images/. No item at all: set Config.Item = false. Another item name: change Config.Item.
  4. Optional, for the verified badge command: add_ace group.admin awphone.admin allow
  5. Restart the server. Open the phone with F1 or by using the phone item.

All database tables are created and updated on the first start (sql/install.sql is there if you prefer to run it yourself).

#Phone numbers

  • QBCore / Qbox: the number in charinfo.phone, so other scripts show the same number.
  • ESX: numbers are kept in the aw_phone_numbers table. Config.NumberPrefix puts a prefix in front of new numbers.