11 lines
239 B
Lua
11 lines
239 B
Lua
|
RegisterCommand('pos', function(source, args)
|
||
|
|
||
|
|
||
|
local ped = PlayerPedId()
|
||
|
local pos = GetEntityCoords(ped)
|
||
|
|
||
|
TriggerEvent('chat:addMessage', {
|
||
|
args = { pos.x .. "\n" .. pos.y.. "\n" .. pos.z }
|
||
|
})
|
||
|
|
||
|
end, false)
|