Teleport

Teleport the focused player to any given coords

Parameters description

ParameterTypeDescriptionDefault

coords

vector3

player coords (You can use GetEntityCoords)

----

Example

HRLib.RegCommand('goto', false, true, function(args, _, _, FPlayer)
    local targetCoords = GetEntityCoords(tonumber(args[1]))
    FPlayer.Teleport(targetCoords)
end, true, { restricted = true })

Last updated