2019-10-24 22:32:40 +03:00
|
|
|
RegisterCommand('pos', function(source, args)
|
|
|
|
|
2019-10-24 23:49:22 +03:00
|
|
|
-- get coordinates
|
2019-10-24 22:32:40 +03:00
|
|
|
local ped = PlayerPedId()
|
|
|
|
local pos = GetEntityCoords(ped)
|
|
|
|
|
2019-10-24 23:49:22 +03:00
|
|
|
-- tell coordinates
|
2019-10-24 22:32:40 +03:00
|
|
|
TriggerEvent('chat:addMessage', {
|
|
|
|
args = { pos.x .. "\n" .. pos.y.. "\n" .. pos.z }
|
|
|
|
})
|
|
|
|
|
|
|
|
end, false)
|