this adds GetAccountName() to client in lua since for some reason we don't have it there
Append to client_ext.lua
Code:
function Client:AccountName()
local AccountName = ""
local MySQLi = require('MySQLi')
local connection = MySQLi:Connect()
connection:query("select name from account where id = '" .. self:AccountID() .. "'")
local result = connection:store_result()
for i,name in result:rows() do
AccountName = name
end
result:free()
return AccountName
end
WARNING: requires MySQL Connect to work