12 lines
No EOL
267 B
Lua
12 lines
No EOL
267 B
Lua
RegisterCommand('pos', function(source, args)
|
|
|
|
-- get coordinates
|
|
local ped = PlayerPedId()
|
|
local pos = GetEntityCoords(ped)
|
|
|
|
-- tell coordinates
|
|
TriggerEvent('chat:addMessage', {
|
|
args = { pos.x .. "\n" .. pos.y.. "\n" .. pos.z }
|
|
})
|
|
|
|
end, false) |