Skip to main content

Prerequisites

Make sure you have a working ESX server with these resources:
  • es_extended (ESX Legacy recommended)
  • oxmysql
  • ox_lib (required by most scripts)

Installation Steps

1

Upload the Script

Place the script folder in your resources directory:
resources/[sixm]/sixm_scriptname/
2

Import SQL

Import the .sql file included with the script into your database.
3

Configure Framework

Config.Framework = 'esx'  -- or 'auto' for auto-detection
4

Add Items (if applicable)

For ESX, add items to your items database table:
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
('sixm_item', 'Item Name', 1);
5

Add to server.cfg

ensure sixm_scriptname
6

Restart

Restart your server.

ESX-Specific Notes

Jobs

ESX uses the jobs and job_grades database tables. Add jobs via SQL:
INSERT INTO `jobs` (`name`, `label`) VALUES ('sixm_job', 'Job Name');

INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`) VALUES
('sixm_job', 0, 'recruit', 'Recruit', 50),
('sixm_job', 1, 'worker', 'Worker', 100),
('sixm_job', 2, 'boss', 'Boss', 200);

Events

ESX scripts use esx:getSharedObject for framework access. SixM scripts handle this automatically — no manual configuration needed.