# Installation

### Requirements

* `ox_lib`.
* `oxmysql`.
* One supported framework:
  * `es_extended`, or
  * `qb-core`, or
  * `qbx_core`.
* Optional: `ox_inventory` (only needed if inventory-money editing is enabled).

### Install Steps

1. Place the resource folder in your server resources directory.
2. Import `db.sql` into your database.
3. Review and edit `config.lua`.
4. Ensure startup order includes dependencies before this resource.
5. Restart the server or run a resource restart.

### Recommended Startup Order

In `server.cfg`, ensure dependencies load first, then this resource:

```cfg
ensure oxmysql
ensure ox_lib
ensure es_extended
ensure 3m_economy
```

If you use QB or Qbox, replace `es_extended` with your framework resource.

### Database Notes

`db.sql` creates required tables for:

* Snapshots.
* Per-player snapshot stats.
* Tax state persistence (`tax_settings`).

The SQL also seeds `tax_settings` safely so first-run tax scheduling has a valid baseline row.

### Security Checklist (Before Going Live)

* Set strong access control in `Config.Access`.
* Keep tax webhook URLs private.
* Disable money editing if you do not need it.
* Keep refresh cooldown enabled to prevent spam.

NOTE:&#x20;

for script to read vehicle prices for taxation you need to add your server vehicles to table 'vehicles', script reads model and price from db to read correctly.\
example :&#x20;

```sql
`name` varchar(60) NOT NULL,
  `model` varchar(60) NOT NULL,
  `price` int(11) NOT NULL,
```

```sql
('Adder', 'adder', 900000),
('Akuma', 'AKUMA', 7500),
('Alpha', 'alpha', 60000),
```

categor
