Commenting code

This commit is contained in:
Lauren Toivanen 2019-10-24 23:49:22 +03:00
parent c55d70b65b
commit 68a88e4422
4 changed files with 22 additions and 15 deletions

View file

@ -1,9 +1,10 @@
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 }
})