GetPlayerLocation
From Onset Developer Wiki
Description
Get the specified client's location.
Syntax
GetPlayerLocation(player)
Parameters
- player
The player identifier.)
Return Value
- Returns three float value X, Y, Z representing the players location.
Example
AddEvent("OnRenderHUD", function()
local x, y, z = GetPlayerLocation()
AddPlayerChat("Player location: "..x..", "..y..", "..z)
end)