rk_cim

a ESX and QBCore compatible information markers script, similar to a /scene. You may download it here

Installation

  1. Install dependencies

  1. Run the SQL found in the _install folder within your database.

CREATE TABLE IF NOT EXISTS `cim_markers` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `coords` longtext NOT NULL,
    `description` text NOT NULL,
    `days` int(11) NOT NULL,
    `created_by` varchar(50) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `expires_at` timestamp NOT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE EVENT IF NOT EXISTS `cleanup_expired_markers`
ON SCHEDULE EVERY 1 DAY
DO
    DELETE FROM `cim_markers` WHERE `expires_at` < NOW();

Configuration

Shared = {
    versionCheck = true,
    
    Price = 250, -- How much it cost to create a information marker, set to false if you want it to be free.

    Distance = 30.0, -- How close you should be to a marker for it to render

    MarkerSize = {x = 0.5, y = 0.5, z = 0.5}, -- why would you change this?
     
    MarkerColor = {r = 255, g = 255, b = 0, a = 100},  -- Use this website for colors https://rgbacolorpicker.com/ 

    Commands = {
        infomarker = {
            'createmarker',
            'cim',
            'infomarker'
        },
        delete = { -- Staff command to open marker menu
            'dim',
            'deletecim'
        }
    },

    -- ESX only, QBCore uses ace perms.
    Staffgroups = {
        'admin',
        'superadmin'
    }
}

-- Runs at 0 resmon, 00.3 near markers.

Last updated