bfx-waypoints — 3D Waypoint Beams via DUI


bfx-waypoints — 3D Waypoint Beams via DUI

Standalone resource that renders 3D waypoint beams in world space using runtime DUI textures. Each waypoint shows a colored beam with live distance and a label. No framework dependencies.

:movie_camera: Preview

:warning: Important — Developer Resource

This is NOT a plug-and-play waypoint system for players.

:wrench: This resource is developer-focused, meaning you must add, update, and remove waypoints manually via exports from your own scripts.

There is no UI, no player commands, and no automatic GPS integration by default.

:sparkles: Features

  • Real 3D geometry (DrawMarker type 9) — depth-tested, clips behind buildings
  • Per-waypoint color, label, and live distance counter
  • Scales with distance — small up close, tall from far away
  • Fades out when you get close
  • Optional auto-remove on approach (enabled by default)
  • Lazy render loop — zero overhead when no waypoints are active
  • Fully controlled via exports, drop it in and call from any resource

:package: Installation

  1. Drop bfx-waypoints into your resources folder
  2. Add ensure bfx-waypoints to your server.cfg
  3. Call the exports from any client-side script

:test_tube: Usage

-- spawn a red waypoint
local id = exports['bfx-waypoints']:AddWaypoint(vector3(200.0, -800.0, 30.0), {
  label = "DELIVERY",
  color = "#E74C3C",
})

-- spawn with defaults (white, auto-removes at 5m)
local id = exports['bfx-waypoints']:AddWaypoint(vector3(200.0, -800.0, 30.0))

-- persistent waypoint (won't auto-remove)
local id = exports['bfx-waypoints']:AddWaypoint(pos, {
  label = "HQ",
  color = "#3498DB",
  autoRemove = false,
})

-- remove it manually
exports['bfx-waypoints']:RemoveWaypoint(id)

-- update color/label/position on the fly
exports['bfx-waypoints']:UpdateWaypoint(id, { color = "#2ECC71", label = "DONE" })

-- find a waypoint near a coord
local id = exports['bfx-waypoints']:GetWaypointForCoord(vector3(200.0, -800.0, 30.0), 10.0)

-- nuke everything
exports['bfx-waypoints']:ClearWaypoints()

:gear: Config

:link: Source


8 Likes

Nice, could you add a license so that we can use the resource?

1 Like

No way, looks amazing

1 Like

This looks awful familiar in design to sleeps waypoints.

Great looking release, but that was the first think that caught my eye!

2 Likes

yea basically is the same they use the same native, the bad thing about that is blackout and collissions

1 Like

Sure, will do in a bit

To be fair I don’t even know what that is but I suppose waypoint system using DUI as well

1 Like

What do you mean by that?

yes just the design looked similar is all :wink: this is a great release!

1 Like

Just added!

Just saw their resource, yes it does lmao. To be fair I didn’t know there was another DUI waypoint resource here and it looks VERY similar

1 Like

It happens more times than one thinks. Great work on the resource!

1 Like