Вот нашел скрипт под самп
Можно как-то переделать под гта5 majestic RP?
sampRegisterChatCommand('test', test)
function test(id)
local _, handle = sampGetCharHandleBySampPlayerId(id) -- Получаем хенлд персонажа по его id
if _ then
local x, y, z = getCharCoordinates(handle)...