Installation

Basic installation of the script

Remember that this resource has verified DMCA protection, and its illegal use or distribution could imply a claim for protection of Title 17 of Chapter 512 (c) (3) of the Digital Millennium Copyright Act

General

As the first step copy the folder to your resource folder, check the resource structure as in the following photo.

Normal structure of LeofComp

No SQL

For a nosql install, make sure you have the non-sql version of the script, to check this go into the gconfig folder and locate the whitelisted.lua file. If you have this file it means that you have the nosql version.

gconfig folder

SQL

For sql install you need to open "lcompwhitelist.sql" and execute the code , this will create a table inside your database.

CREATE TABLE `lcompwhitelist` (
  `identifier` varchar(60) NOT NULL PRIMARY KEY
)

Step 1 : Configuration

Open the mainconfig.lua file.

  • Config = {}
    
    -- ___________                                                __    
    -- \_   _____/___________    _____   ______  _  _____________|  | __
    --  |    __) \_  __ \__  \  /     \_/ __ \ \/ \/ /  _ \_  __ \  |/ /
    --  |     \   |  | \// __ \|  Y Y  \  ___/\     (  <_> )  | \/    < 
    --  \___  /   |__|  (____  /__|_|  /\___  >\/\_/ \____/|__|  |__|_ \
    --      \/               \/      \/     \/                        \/
    
    Config.framework = 'ESX' --- @param Set 'ESX' or 'QBCore'
    Config.customFramework = false ---@param for custom exports
    
    --- @param If you are using ESX 1.8.5 or higher put in true 'Config.customFramework' and uncomment line 15
    function CustomFrameworkObject()
       ESX = exports["es_extended"]:getSharedObject()
    end
    
    ---@param Function for remove money in case you have custom framework (you should use the same variable of 'CustomFrameworkObject')
    function CustomRemoveMoney()
       
    end
    
    -- ___________                   __  .__                     .__  .__  __          
    -- \_   _____/_ __  ____   _____/  |_|__| ____   ____ _____  |  | |__|/  |_ ___.__.
    --  |    __)|  |  \/    \_/ ___\   __\  |/  _ \ /    \\__  \ |  | |  \   __<   |  |
    --  |     \ |  |  /   |  \  \___|  | |  (  <_> )   |  \/ __ \|  |_|  ||  |  \___  |
    --  \___  / |____/|___|  /\___  >__| |__|\____/|___|  (____  /____/__||__|  / ____|
    --      \/             \/     \/                    \/     \/               \/     
    
    Config.Priced = true
    Config.vip = false  --TRUE: WHITELISTED WHITELISTED.JSON | FALSE : NO WHITELISTED
    Config.sql = false ---@param if true for the moment only compatible with oxymysql
    
    -- _____  .__               
    -- /     \ |__| ______ ____  
    -- /  \ /  \|  |/  ___// ___\ 
    -- /    Y    \  |\___ \\  \___ 
    -- \____|__  /__/____  >\___  >
    --       \/        \/     \/ 
    
    Config.message = "PRESS [ ~g~E~w~ ] FOR COMPONENTS"
    
    Config.Coords = {
        X = 19.19,
        Y = -1108.86,
        Z = 29.8
     }
    
     Config.CamCoords = {
        X = 20.15,
        Y = -1106.51,
        Z = 30.2
     }
    
     Config.CamPointCoords ={
        X= 20.58,
        Y = -1105.49,
        Z = 30.2
     }
    
     Config.CreateWeapon = {
       X= 20.58,
       Y = -1105.49,
       Z = 30.2
     }
    
     Config.R = 209
     Config.G = 255
     Config.B = 255
  • Config.framework : This is for will display the message above the marker.

  • Config.customFramework : Set true if you are using custom framework (you should edit the functions CustomFrameworkObject() and CustomRemoveMoney()

  • function CustomFrameworkObject() : Function to get object of your custom framework.

  • function CustomRemoveMoney() : Function to remove money of player (you should use your custom framework object here too.

  • Config.Priced : This is for set price system.

  • Config.vip : True for enable VIP system, you should add the hex steam identifier in the file whitelisted.lua.

    whitelistedplayers = {
        "steam:11000010d2baef"
    }
  • Config.sql: This is for change the vip to sql database, you should made the sql install first.

  • Config.message : This is for will display the message above the marker.

  • Config.Coords: This configuration is for set the marker position in X,Y,Z.

  • Config.CamCoords : This configuration is for set camera position.

  • Config.CamPointCoords: This configuration is for set the camera pointer.

  • Config.CreateWeapon : This configuration is for set the position where the weapon will be created.

  • Config.R/G/B : This configuration is for set the colors of the marker.

Last updated