SetPlayerLocation
From Onset Developer Wiki
Description
Set the specified client's location.
Syntax
SetPlayerLocation(player, x, y, z)
Parameters
- player
The client identifier - x
The X coordinate of position to put the player at. - y
The Y coordinate of position to put the player at. - z
The Z coordinate of position to put the player at.
Return Value
- Returns true on success.
Example
AddCommand("town", function(player)
SetPlayerLocation(player, -182821.00, -41675.00, 1160.00)
AddPlayerChat(player, "Teleported to town.")
end)