Add files via upload
This commit is contained in:
parent
8bde47b30a
commit
075a3a2f3b
9 changed files with 133 additions and 0 deletions
3
pos/__resource.lua
Normal file
3
pos/__resource.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
|
||||
|
||||
client_script 'pos.lua'
|
11
pos/pos.lua
Normal file
11
pos/pos.lua
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue