natives.drawCheckpointWithAlpha

Revision as of 12:29, 21 December 2025 by ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawCheckpointWithAlpha |parameters = Vec3 position, float radius, int r, int g, int b, int a |parameter1 = Vec3 position Coordinates of the checkpoint (x, y, z) |parameter2 = float radius Radius of the checkpoint circle |parameter3 = int r Red component (0–255) |parameter4 = int g Green component (0–255) |parameter5 = int b Blue component (0–255) |parameter6 = int a Alpha component (0–2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function Client Only icon-iv.png Online and Offline

Available since Client 1.0.0

void natives.drawCheckpointWithAlpha(Vec3 position, float radius, int r, int g, int b, int a)

The natives.drawCheckpointWithAlpha function is used to Draws a visual checkpoint marker at the given coordinates with adjustable transparency.

Parameters

1) Vec3 position Coordinates of the checkpoint (x, y, z).
2) float radius Radius of the checkpoint circle.
3) int r Red component (0–255).
4) int g Green component (0–255).
5) int b Blue component (0–255).
6) int a Alpha component (0–255, transparency).

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, radius and alpha allow customization of the checkpoint’s appearance- Alpha controls transparency (0 = invisible, 255 = fully opaque).

Examples

Example 1 - JavaScript:

addEventHandler("OnDrawnHUD", () => {

natives.drawCheckpointWithAlpha(new Vec3(910.94, -506.06, 15.04), 3.0, 0, 255, 0, 128);

});

Compatibility

There isn't any compatibility information for this function.