πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Configuration

Don't touch this line

Config, Noti, Lang = {}, {}, {}

Framework Setup

Choose your framework and configure the basic settings:

-- Use "esx" or "qb"
Config.Framework = "qb"

-- If you are using one of the most recent versions of ESX, set the script name
-- Default = "es_extended"
Config.ESXExport = ""

-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"

-- oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"

General Settings

-- Command to open the menu
Config.open = "creator"

-- Keep true if you want to use your own functions in the markers
Config.useFunctionsOnMarkers = true

-- Keep true if you want to use your own functions in the PEDS
Config.useFunctionsOnPEDS = true

-- Font used for text in open functions
-- If you use Chinese language set to 0
Config.alertTextFont = 4

-- Distance from which the marker will be visible
Config.showMarkerDistance = 20

-- Distance at which the alert texts can be displayed and/or the open functions can be performed
Config.showPressEDistance = 2

-- Distance from which blips will be displayed
Config.blipMarkerDistance = 100

Ped Configuration

-- Set to true if you want spawned peds to be able to die
Config.pedCanDie = false

-- Set to true if you want the peds to be able to be aggressive or run away
Config.passivePed = true

-- If you don't want the peds to move from the spawn point keep on true
Config.freezePed = true

-- Distance the ped can travel when the "Walkaround" option is checked
Config.pedWalkAroundDistance = 6.0

Vehicle Configuration

-- Freeze the position of vehicles
Config.freezeVehicles = true

Notifications

Configure your notification system:

function notifications(notitype, message, time)
    -- Change this trigger for your notification system keeping the variables
    if Config.Framework == 'esx' then
        ESX.ShowNotification(message) -- default ESX notification
    elseif Config.Framework == 'qb' then
        QBCore.Functions.Notify(message) -- default QB notification
    end
end

-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

Custom Functions

Marker Functions

Add custom interactions for markers:

function markersFunctions(functionName)
    if functionName == "PublicMarker" then
        drawTxt("Hello!", Config.alertTextFont, 1, 0.5, 0.8, 0.6, 255, 255, 255, 255)
        if IsControlJustPressed(0,38) then
            print ("Hello!")
        end
    elseif functionName == "PoliceMarker" then
        drawTxt("Hello Police!", Config.alertTextFont, 1, 0.5, 0.8, 0.6, 255, 255, 255, 255)
        if IsControlJustPressed(0,38) then
            print ("Hello!")
        end
    end
end

Ped Functions

Add custom interactions for peds:

function PEDSFunctions(pedName)
    if pedName == "bouncer" then
        drawTxt("You cannot pass here", Config.alertTextFont, 1, 0.5, 0.8, 0.6, 255, 255, 255, 255)
        if IsControlJustPressed(0,38) then
            print ("Hello!")
        end
    end
end

Language Strings

Customize all messages:

Lang.newBlip = "A new blip has been added"
Lang.noNewBlip = "Could not add a new blip"
Lang.newMarker = "A new marker has been added"
Lang.noNewMarker = "Could not add a new marker"
Lang.newPed = "A new ped has been added"
Lang.noNewPed = "Could not add a new ped"
Lang.newProp = "A new prop has been added"
Lang.noNewProp = "Could not add a new prop"
Lang.newVeh = "A new vehicle has been added"
Lang.noNewVeh = "Could not add a new vehicle"
Lang.active = "Active:"
Lang.status = "Status has been updated."
Lang.noStatus = "Unable to update status."
Lang.removed = "Successfully removed"
Lang.noRemoved = "Unable to remove"
Lang.config = "The configuration has been saved successfully"
Lang.noConfig = "The configuration has not been saved correctly"