natives.drawCheckpoint
Jump to navigation
Jump to search
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.drawCheckpoint(float x, float y, float z, float radius, int r, int g, int b, int a)
The natives.drawCheckpoint function is used to Draw a visual checkpoint marker at given coordinates.
Parameters
| 1) | float | x | X coordinate of the checkpoint. |
| 2) | float | y | Y coordinate of the checkpoint. |
| 3) | float | z | Z coordinate of the checkpoint. |
| 4) | float | radius | Radius of the checkpoint circle. |
| 5) | int | r | Red component (0–255). |
| 6) | int | g | Green component (0–255). |
| 7) | int | b | Blue component (0–255). |
| 8) | int | a | Alpha component (0–255). |
Return
| void | This function doesn't return a value. |
Notes
- - Must be called inside a rendering event such as OnDrawnHUD so the marker is drawn each frame- Color and radius allow customization of the checkpoint’s appearance.
Examples
Example 1 - JavaScript:
natives.drawCheckpoint(100.0, 200.0, 20.0, 3.0, 255, 0, 0, 200);
Compatibility
There isn't any compatibility information for this function.