okokDocs
  • About Us
  • Scripts
    • okokVehicleControl
      • Config file
    • okokMechanicJob
      • Config file
    • okokPoliceJob
      • Config file
      • qb-inventory support
    • okokBossMenu
      • Config file
    • okokMulticharacter
      • Config file
    • okokPhone
    • okokSpawnSelector
      • Config file
      • qb-multicharacter support
    • okokLoadingScreen
      • Config file
    • okokVehicleSales
      • Config file
    • okokShop
      • Config file
    • okokGasStation
      • Config file
    • okokTuning
      • Config file
    • okokGarage
      • Config file
      • RGB vehicle colors
      • Inventories metadata
      • Housing integrations
      • qb-phone support
    • okokVehicleShop
      • Config file
      • Common errors
    • okokBanking
      • Config file
      • Paycheck transactions
      • Registering transactions
    • okokMarketplace
      • Config file
      • Common errors
    • okokChat
      • Config file
      • Export
    • okokBilling
      • Config file
      • Snippets
    • okokCrafting
      • Config file
    • okokContract
      • Config file
    • okokTalkToNPC
      • Config file
    • okokReports
      • Config file
    • okokNotify
      • Config file
      • Snippets
    • okokTextUI
      • Config file
      • Snippets
    • okokRequests
    • okokDeleteVehicles
      • Config file
  • Others
    • Discord Webhook
Powered by GitBook
On this page
  • Installation Guide
  • Adding images to the items/vehicles
  1. Scripts

okokMarketplace

PreviousRegistering transactionsNextConfig file

Last updated 1 year ago

Installation Guide

Execute the following SQL code in your database:

CREATE TABLE `okokmarketplace_vehicles`  (
    `id` int(255) NOT NULL AUTO_INCREMENT,
    `item_id` varchar(255) NOT NULL,
    `plate` varchar(255) NOT NULL,
    `label` varchar(255) NOT NULL,
    `author_identifier` varchar(255) NOT NULL,
    `author_name` varchar(255) NULL DEFAULT NULL,
    `phone_number` varchar(255) NULL DEFAULT NULL,
    `description` varchar(255) NULL DEFAULT NULL,
    `price` varchar(255) NOT NULL,
    `sold` tinyint(1) NOT NULL DEFAULT 0,
    `start_date` varchar(255) NOT NULL,
    PRIMARY KEY (`id`)
);

CREATE TABLE `okokmarketplace_items`  (
    `id` int(255) NOT NULL AUTO_INCREMENT,
    `item_id` varchar(255) NOT NULL,
    `label` varchar(255) NOT NULL,
    `amount` varchar(255) NULL DEFAULT NULL,
    `author_identifier` varchar(255) NOT NULL,
    `author_name` varchar(255) NULL DEFAULT NULL,
    `phone_number` varchar(255) NULL DEFAULT NULL,
    `description` varchar(255) NULL DEFAULT NULL,
    `price` varchar(255) NOT NULL,
    `sold` tinyint(1) NOT NULL DEFAULT 0,
    `start_date` varchar(255) NOT NULL,
    PRIMARY KEY (`id`)
);

CREATE TABLE `okokmarketplace_blackmarket`  (
    `id` int(255) NOT NULL AUTO_INCREMENT,
    `item_id` varchar(255) NOT NULL,
    `label` varchar(255) NOT NULL,
    `type` varchar(255) NOT NULL,
    `amount` varchar(255) NOT NULL,
    `author_identifier` varchar(255) NOT NULL,
    `author_name` varchar(255) NULL DEFAULT NULL,
    `phone_number` varchar(255) NULL DEFAULT NULL,
    `description` varchar(255) NULL DEFAULT NULL,
    `price` varchar(255) NOT NULL,
    `sold` tinyint(1) NOT NULL DEFAULT 0,
    `start_date` varchar(255) NOT NULL,
    PRIMARY KEY (`id`)
);

Adding images to the items/vehicles

To add items and vehicle images simply drop them in okokMarketplace/web/icons.

  • The images should be in the PNG format;

  • Items: the image name should be the same as the item ID, if the item ID is "bread", then the image should be "bread.png";

  • Vehicles: the image name should be the <gameName> of the vehicle (you can find the <gameName> in the vehicles.meta file of each vehicle), examples:

    • If the vehicle <gameName> is DS3, then the image should be "DS3.png";

    • If the vehicle <gameName> is La Voiture, then the image should be "LaVoiture.png".

YouTube Video