Installation

Check out the default STANDALONE config file.

How to download the script

To download the asset, you need to have completed the purchase using your own Keymaster account.

Once your purchase is confirmed on our official website, the asset will appear in your Keymaster account. From there, you can download and install it by following the steps outlined in the documentation.

If the asset was bought through a different account, you can transfer it via the keymaster transfer system

Dependencies

Script
Download

Casino DLC IPL Loader Needed if you want the poker app, also other Casino DLC can work

mumble voice OR pma voip OR tokyio voip OR salty chat

Correct Asset Placement

To ensure the asset runs smoothly, configure your server.cfg with the sequence specified below:

# at the bottom of the file and after all the dependecies add

# only if using Casino DLC IPL Loader and want to use poker app
ensure DLCiplLoader

ensure complete_vision_texture
ensure complete_vision_prop
ensure complete_vision

Database Configuration

You must update your database in order for the script to work, simply drag and drop the database.sql file into your database (make sure to select first the correct database your server is using)

SQL
CREATE TABLE IF NOT EXISTS `vision` (
	`citizenid` varchar(50) NOT NULL,
	`visorid` varchar(50) NOT NULL UNIQUE,
	`settings` longtext DEFAULT NULL,
	`songs` longtext DEFAULT NULL,
	`calls` longtext DEFAULT NULL,
	PRIMARY KEY (`citizenid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `vision_friends` (
	`id` int NOT NULL AUTO_INCREMENT,
	`citizenid` varchar(50) DEFAULT NULL,
	`name` varchar(50) DEFAULT NULL,
	`visorid` varchar(50) DEFAULT NULL,
	PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `vision_gallery` (
	`id` int NOT NULL AUTO_INCREMENT,
	`citizenid` varchar(50) DEFAULT NULL,
	`src` varchar(200) DEFAULT NULL,
	`date` timestamp NULL DEFAULT current_timestamp(),
	PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `vision_virtual_img` (
	`id` int NOT NULL AUTO_INCREMENT,
	`citizenid` varchar(50) DEFAULT NULL,
	`image` longtext DEFAULT NULL,
	PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Item Configuration

The script uses the Vision Pro item, you need to add it to your server before you can use it. The procedure depends on the scripts and framework your server is using:

ESX

Add this to your database

INSERT INTO `items` (name, label, weight) VALUES
	('vision_pro', 'Vision Pro', 2)
;
QBCORE

Add this in your items shared file

['vision_pro'] = {
    ["name"] = "vision_pro",
    ["label"] = "Vision Pro",
    ["weight"] = 400,
    ["type"] = "item",
    ["image"] = "vision_pro.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Complete Vision by Complete Scripts"
},

Handling Photos

In order to take and store photos you need something where upload them. Here are different options:

With Discord's recent policy changes, many servers might lose access to traditional webhooks. Therefore, we recommend using fivemanage.com. The guide for creating and using the token can be found in the following section.

Fivemanage
  1. Create an account at Fivemanage

  2. After you have created an account or logged in, navigate to the Token page and create a new token

  3. Copy and paste this Token into the config.lua file at Config.Webhook

Discord
  1. Right click on a channel dedicated for photos

  2. Click Edit Channel

  3. Click Integrations

  4. Click View Webhooks

  5. Click New Webhook

  6. Confirm channel

  7. Click Copy Webhook URL

  8. Paste paste this into the config.lua file at Config.Webhook

Configure the script

As for the last step is access the config files and modify them as you like, please make sure to have a minimum of coding skills before edit those files, a single character wrong won't let the code start.

Main config file can be found in complete_vision/config.lua

For configuring framework related functions go into complete_vision/framework, select the folder reguarding your framework (if not ESX or QBCore open the Custom folder), and edit client.lua and server.lua

Another config file can be found in complete_vision/html/config.js

Last updated

Was this helpful?