Module cl_coords
Coords Module
Functions
| CoordsForward (coords, heading, distance) | CoordsForward function. |
| CoordsLeft (coords, heading, distance) | CoordsLeft function. |
| CoordsNear (coords, coords2, distance) | CoordsNear function. |
| CoordsForwardPlayer (distance) | CoordsForwardPlayer function. |
Functions
- CoordsForward (coords, heading, distance)
-
CoordsForward function.
This function returns the coords in front of the player.
Parameters:
- coords The coords. vector3
- heading The heading. number
- distance The distance. number
Returns:
-
vector3
Usage:
local coords = exports.jones_util:CoordsForward(vector3(0.0, 0.0, 0.0), 0.0, 1.0)
- CoordsLeft (coords, heading, distance)
-
CoordsLeft function.
This function returns the coords to the left of the player.
Parameters:
- coords The coords. vector3
- heading The heading. number
- distance The distance. number
Returns:
-
vector3
Usage:
local coords = exports.jones_util:CoordsLeft(vector3(0.0, 0.0, 0.0), 0.0, 1.0)
- CoordsNear (coords, coords2, distance)
-
CoordsNear function.
This function returns if the coords are near the coords.
Parameters:
- coords The coords. vector3
- coords2 The coords2. vector3
- distance The distance. number
Returns:
-
boolean
- CoordsForwardPlayer (distance)
-
CoordsForwardPlayer function.
This function returns the coords in front of the player.
Parameters:
- distance The distance. number
Returns:
-
vector3
Usage:
local coords = exports.jones_util:CoordsForwardPlayer(1.0)