Add files via upload

This commit is contained in:
Jakestus 2019-10-24 22:32:40 +03:00 committed by GitHub
parent 8bde47b30a
commit 075a3a2f3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 133 additions and 0 deletions

3
pos/__resource.lua Normal file
View file

@ -0,0 +1,3 @@
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script 'pos.lua'

11
pos/pos.lua Normal file
View file

@ -0,0 +1,11 @@
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)