> For the complete documentation index, see [llms.txt](https://scriptforge.gitbook.io/d/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scriptforge.gitbook.io/d/crypto-money-washer/installation-guide.md).

# Installation guide

Full guide to install the crypto money washer script.

## Requirements

* Latest ESX framework
* OXMysql

## 1. OXMysql

To run the crypto money washer script, oxmysql must be installed and running on the server.\
<https://github.com/overextended/oxmysql>

## 2. SQL

Run the sql query on your mysql client

```sql
INSERT INTO `jobs` (`name`, `label`) VALUES ('hacker', 'Hacker');
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES ('hacker', 0, 'recruit', 'Recruit', 0, '{}', '{}');
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES ('hacker', 1, 'boss', 'Boss', 0, '{}', '{}');
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('computer', 'Computer', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('bag_of_cash', 'Bag of cash', 1, 0, 1);

CREATE TABLE `acn_bit2cash_transactions` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(46) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`amount` INT(11) NULL DEFAULT NULL,
	`transaction_id` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`used` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	PRIMARY KEY (`id`) USING BTREE
)

CREATE TABLE `acn_bitcoins_amount` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`identifier` VARCHAR(46) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`wallet` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`currency_name` VARCHAR(255) NOT NULL COLLATE 'utf8mb3_general_ci',
	`amount` DECIMAL(20,6) NOT NULL DEFAULT '0.000000',
	PRIMARY KEY (`id`) USING BTREE
)

CREATE TABLE `acn_bitcoin_value_rate` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`value` DECIMAL(10,2) NOT NULL,
	PRIMARY KEY (`id`) USING BTREE
)
CREATE TABLE `acn_items_on_sale` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`player_identifier` VARCHAR(46) NOT NULL COLLATE 'utf8mb3_general_ci',
	`item_unique_ID` BIGINT(10) NOT NULL DEFAULT '0',
	`item_type` VARCHAR(50) NOT NULL COLLATE 'utf8mb3_general_ci',
	`item_name` VARCHAR(255) NOT NULL COLLATE 'utf8mb3_general_ci',
	`item_quantity` INT(11) NOT NULL,
	`item_price_bitcoins` DECIMAL(20,6) NULL DEFAULT NULL,
	PRIMARY KEY (`id`) USING BTREE
)

CREATE TABLE `acn_player_levels` (
	`Identifier` VARCHAR(46) NOT NULL COLLATE 'utf8mb3_general_ci',
	`cut_level` INT(11) NULL DEFAULT '0',
	`alert_level` INT(11) NULL DEFAULT '0',
	`marketfee_level` INT(11) NULL DEFAULT '0',
	`farm_level` INT(11) NULL DEFAULT '0',
	`edrugs_level` INT(11) NULL DEFAULT '0',
	`vpn` INT(11) NULL DEFAULT '0',
	`stock` INT(11) NULL DEFAULT '0',
	`rack_status` INT(11) NULL DEFAULT '0',
	PRIMARY KEY (`Identifier`) USING BTREE
)
```

## 3. Restart

The server console must be restarted, or offline before attempting to run the script.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://scriptforge.gitbook.io/d/crypto-money-washer/installation-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
