Configuration - Server side

With all of our resources, you also get much configuration, here is some explanation for it!

circle-exclamation

Server data - Configuration

Go to pls_companies/sh_config.lua

SH_Config = {}

-------- REMOVE SPECIAL CHARACTERS
local function removeChars(str)
    local newStr = str:gsub('[%(%)-]', '')
    newStr = newStr:gsub(' ', '')
    return newStr
end


-- CONFIG CONTINUE
SH_Config.sendSMS = function(phoneNumber, message)
    -- exports["lb-phone"]:SendMessage("Unknown", removeChars(phoneNumber), message)
    -- Export for SMS your phone!
end

function SendLogs(source,log_action,action_message,data)
    local player = ESX.GetPlayerFromId(source)
    local log_data = {
        player = GetPlayerName(source),
    }
    table.insert(log_data,data)
    TriggerEvent("logs:send", {
        player = player.source, action = log_action, 
        message = ("Player %s "..action_message):format(GetPlayerName(player.source)), 
        data = log_data
    })
end

function SendLogs2(log_action,action_message,data)
    TriggerEvent("logs:send", {
        player = log_action, 
        message = action_message,
        data = data
    })
end

Warehouses data

Here you can see a server/warehouses_data.lua example with all additions you'll need

Last updated