My specific implementation edits other scripts but I wouldnât mind taking the time later this morning(itâs currently 3:30 am) to submit a PR to the GitHub repo with a version that has a config option to make it operate without ESX. It would be up to you to edit it to ensure players have the necessary privileges though, Iâll see what I can whip up to add at least some permission checking. It would ultimately be up to @NevoG whether to accept that PR or not though.
I couldnât sleep, so instead, I programmed. I just submitted a PR that adds:
A standalone mode
A permissions system for that standalone mode
Chat suggestions for commands
It includes two different permissions system options; discord, and ace_perms. Each permissions system is heavily configurable.
local _source = source
local identifier = ESX.GetPlayerFromId(_source).identifier
local result = MySQL.Sync.fetchAll('SELECT * FROM users WHERE identifier = @identifier',
{
['@identifier'] = identifier
})
if result[1] ~= nil and result[1].firstname ~= nil and result[1].lastname ~= nil then
return result[1].firstname .. ' ' .. result[1].lastname
else
return ""
end