Accessible code
Shared = {
commands = {
sessionmanager = 'sessionmanager',
sqlmanager = 'sqlmanager',
singlePlayer = 'singleplayer'
},
groups = {'mod', 'admin', 'god'},
enableLogs = true,
webhook = '', -- webhook for discord logs
topList = 25, -- how many players will show in menu, would not recomment to go over 100
SQLData = {
playerTable = 'players',
playerColumn = 'citizenid',
accountsColumn = 'money',
jobColumn = 'job',
charinfoColumn = 'charinfo',
},
qb_core_name = 'qb-core',
Locales = {
[1] = 'uniq-scripts.com', -- title in notify
[2] = 'There is no player with that id',
[3] = 'There is no player with that citizenid',
[4] = 'Money Handler Type wasnt picked',
[5] = 'Your Cash has been set to $%s via admin menu',
[6] = 'Your Bank has been set to $%s via admin menu',
[7] = 'Your Crypto has been set to %s via admin menu',
[8] = 'Admin Set Money Via Menu', -- notify for qb phone
[9] = 'You received $%s via admin menu',
[10] = 'You received $%s to your bank via admin menu',
[11] = 'You received $%s to your crypto account via admin menu',
[12] = 'Admin Add Money Via Menu', -- notify for qb phone
[13] = '$%s has been removed from you via admin menu',
[14] = '$%s has been removed from your bank account via admin menu',
[15] = '$%s has been removed from your crypto account via admin menu',
[16] = 'Admin Remove Money Via Menu', -- notify for qb phone
[17] = 'Player Handler', -- title in context menu
[18] = 'Money: %s\nBank: %s\nCrypto: %s', -- description in context menu for each player
[19] = 'First Name',
[20] = 'Last Name',
[21] = 'Cash',
[22] = 'Bank',
[23] = 'Crypto',
[24] = 'Group',
[25] = 'Job',
[26] = 'Grade',
[27] = 'Chose Money Option',
[28] = 'Set Money',
[29] = 'Add Money',
[30] = 'Remove Money',
-- command suggestion in chat
[31] = 'Sort Players By Type In Session',
[32] = 'Sort Types (money, bank, crypto)',
[33] = 'Sort Players By Type From SQL',
[34] = 'Handle single player by their id or citizenid',
[35] = 'Chose Search Option',
[36] = 'Online Player (ID)',
[37] = 'Offline Player (CitizenId)',
[38] = 'ID',
[39] = 'Citizenid',
[40] = 'Your First Name was changed to %s',
[41] = 'Your Last Name was changed to %s',
[42] = 'Your Group has been changed to %s',
[43] = 'Your Job has been changed to %s - %s',
-- discord logs
[44] = '`%s %s` first name was changed to `%s` by `%s`',
[45] = '`%s %s` last name was changed to `%s` by `%s`',
[46] = '`%s %s` group has been updated to `%s` by `%s`',
[47] = '`%s %s` job has been updated to `%s - %s` by `%s`',
[48] = '`%s %s` money has been setted to `$ %s` by `%s`',
[49] = '`%s %s` bank account has been setted to `$ %s` by `%s`',
[50] = '`%s %s` crypto account has been setted to `$ %s` by `%s`',
[51] = '`%s %s` got `$%s` by `%s`',
[52] = '`%s %s` got to `$%s` to his bank by `%s`',
[53] = '`%s %s` got to `$%s` to his crypto account by `%s`',
[54] = '`$%s` has been removed from `%s %s` by `%s`',
[55] = '`$%s` has been removed from `%s %s` bank by `%s`',
[56] = '`$%s` has been removed from `%s %s` crypto account by `%s`',
[57] = 'That job doesnt exist :/'
}
}
RegisterNetEvent('uniq-playerManager:Notify', function(title, msg, type)
lib.notify({
title = title,
description = msg,
type = type
})
end)
function logger(message)
if Shared.webhook ~= '' then
PerformHttpRequest(Shared.webhook, function(status) end, 'POST', json.encode({
username = cache.resource,
embeds = {{
color = 16705372,
title = '',
description = message,
footer = {
text = os.date(),
icon_url = ''
}
}}
}), { ['Content-Type'] = 'application/json' })
end
end
Last updated