на hms все работает ошибочка вышла
local RakLua = require('RakLua')
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('as', function(id)
if sampIsPlayerConnected(id) then
local res, _ = sampGetCharHandleBySampPlayerId(id)
if...