Module sv_coords
Coords System
Functions
| CoordsForward (coords, heading, distance) | CoordsForward function. |
| CoordsLeft (coords, heading, distance) | CoordsLeft function. |
| CoordsNear (coords, coords2, distance) | CoordsNear function. |
| CoordsForwardPlayer (src, distance) | CoordsForwardPlayer function. |
Functions
- CoordsForward (coords, heading, distance)
-
CoordsForward function.
This function returns the forward coords of a player.
Parameters:
- coords The coords to use. vector3
- heading The heading to use. number
- distance The distance to use. number
Returns:
-
vector3
Usage:
local coords = exports.jones_util:CoordsForward(coords, heading, distance)
- CoordsLeft (coords, heading, distance)
-
CoordsLeft function.
This function returns the left coords of a player.
Parameters:
- coords The coords to use. vector3
- heading The heading to use. number
- distance The distance to use. number
Returns:
-
vector3
Usage:
local coords = exports.jones_util:CoordsLeft(coords, heading, distance)
- CoordsNear (coords, coords2, distance)
-
CoordsNear function.
This function returns if coords are near another coords.
Parameters:
- coords The coords to use. vector3
- coords2 The coords to use. vector3
- distance The distance to use. number
Returns:
-
boolean
Usage:
local coords = exports.jones_util:CoordsNear(coords, coords2, distance)
- CoordsForwardPlayer (src, distance)
-
CoordsForwardPlayer function.
This function returns the forward coords of a player.
Parameters:
- src The player's server id.
- distance The distance to use. number
Returns:
-
vector3
Usage:
local coords = exports.jones_util:CoordsForwardPlayer(src, distance)