Configuration

Don't touch this line

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

CONFIGURATION FILE

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

-- $$$$$$\   $$$$$$\  $$\   $$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ $$$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ 
--$$  __$$\ $$  __$$\ $$$\  $$ |$$  _____|\_$$  _|$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |
--$$ /  \__|$$ /  $$ |$$$$\ $$ |$$ |        $$ |  $$ /  \__|$$ |  $$ |$$ |  $$ |$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |
--$$ |      $$ |  $$ |$$ $$\$$ |$$$$$\      $$ |  $$ |$$$$\ $$ |  $$ |$$$$$$$  |$$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |
--$$ |      $$ |  $$ |$$ \$$$$ |$$  __|     $$ |  $$ |\_$$ |$$ |  $$ |$$  __$$< $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ |
--$$ |  $$\ $$ |  $$ |$$ |\$$$ |$$ |        $$ |  $$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |
--\$$$$$$  | $$$$$$  |$$ | \$$ |$$ |      $$$$$$\ \$$$$$$  |\$$$$$$  |$$ |  $$ |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |
 --\______/  \______/ \__|  \__|\__|      \______| \______/  \______/ \__|  \__|\__|  \__|  \__|   \______| \______/ \__|  \__|

--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"
--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
--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
--Freeze the position of vehicles
Config.freezeVehicles = true


--$$\   $$\  $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\  $$$$$$\  
--$$$\  $$ |$$  __$$\\__$$  __|\_$$  _|$$  _____|\_$$  _|$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |$$  __$$\ 
--$$$$\ $$ |$$ /  $$ |  $$ |     $$ |  $$ |        $$ |  $$ /  \__|$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |$$ /  \__|
--$$ $$\$$ |$$ |  $$ |  $$ |     $$ |  $$$$$\      $$ |  $$ |      $$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |\$$$$$$\  
--$$ \$$$$ |$$ |  $$ |  $$ |     $$ |  $$  __|     $$ |  $$ |      $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ | \____$$\ 
--$$ |\$$$ |$$ |  $$ |  $$ |     $$ |  $$ |        $$ |  $$ |  $$\ $$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |$$\   $$ |
--$$ | \$$ | $$$$$$  |  $$ |   $$$$$$\ $$ |      $$$$$$\ \$$$$$$  |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |\$$$$$$  |
--\__|  \__| \______/   \__|   \______|\__|      \______| \______/ \__|  \__|  \__|   \______| \______/ \__|  \__| \______/

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

--$$$$$$$$\ $$\   $$\ $$\   $$\  $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\  $$$$$$\  
--$$  _____|$$ |  $$ |$$$\  $$ |$$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |$$  __$$\ 
--$$ |      $$ |  $$ |$$$$\ $$ |$$ /  \__|  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |$$ /  \__|
--$$$$$\    $$ |  $$ |$$ $$\$$ |$$ |        $$ |     $$ |  $$ |  $$ |$$ $$\$$ |\$$$$$$\  
--$$  __|   $$ |  $$ |$$ \$$$$ |$$ |        $$ |     $$ |  $$ |  $$ |$$ \$$$$ | \____$$\ 
--$$ |      $$ |  $$ |$$ |\$$$ |$$ |  $$\   $$ |     $$ |  $$ |  $$ |$$ |\$$$ |$$\   $$ |
--$$ |      \$$$$$$  |$$ | \$$ |\$$$$$$  |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |\$$$$$$  |
--\__|       \______/ \__|  \__| \______/   \__|   \______| \______/ \__|  \__| \______/

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

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

--$$\        $$$$$$\  $$\   $$\  $$$$$$\  $$\   $$\  $$$$$$\   $$$$$$\  $$$$$$$$\ 
--$$ |      $$  __$$\ $$$\  $$ |$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\ $$  _____|
--$$ |      $$ /  $$ |$$$$\ $$ |$$ /  \__|$$ |  $$ |$$ /  $$ |$$ /  \__|$$ |      
--$$ |      $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ |  $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\    
--$$ |      $$  __$$ |$$ \$$$$ |$$ |\_$$ |$$ |  $$ |$$  __$$ |$$ |\_$$ |$$  __|   
--$$ |      $$ |  $$ |$$ |\$$$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |      
--$$$$$$$$\ $$ |  $$ |$$ | \$$ |\$$$$$$  |\$$$$$$  |$$ |  $$ |\$$$$$$  |$$$$$$$$\ 
--\________|\__|  \__|\__|  \__| \______/  \______/ \__|  \__| \______/ \________|

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"

Last updated