RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Gameplay AchievementGameplay CityDiscoverForce FieldGarage ModeMarker InteractionParking SystemGameplay Playmode MarkersGameplay PoliceGameplay RallyGameplay Rally LoopGameplay Raw POIsGameplay Skidpad TestSpeed Trap LeaderboardsSpeed Traps and CamerasGameplay StatisticsTaxi Ride SystemTraffic SystemVehicle PerformanceWalking

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsgameplay

Gameplay Raw POIs

Extension that manages raw Point of Interest (POI) lists used by the bigmap/minimap. Aggregates POIs from all gameplay systems (missions, facilities, gas stations) with special handling for career tut

Extension that manages raw Point of Interest (POI) lists used by the bigmap/minimap. Aggregates POIs from all gameplay systems (missions, facilities, gas stations) with special handling for career tutorial flow.


Public API

FunctionSignatureReturnsDescription
getRawPoiListByLevel(levelIdentifier)elements, generationGet POI list for a level
getRawPoiGeneration()numberCurrent cache generation counter
clear()nilInvalidate all cached POI lists

Hooks

HookPurpose
showMissionMarkersToggledClears cache (same as clear)
onModManagerReadyClears cache

Internals

  • rawPoiListByLevel: Cache of POI arrays keyed by level identifier
  • rawPoiGeneration: Increments on each cache clear, used by consumers to detect stale data

How It Works

  1. getRawPoiListByLevel checks if a cached list exists for the level
  2. If not cached, calls extensions.hook("onGetRawPoiListForLevel") to collect POIs from all extensions
  3. Each POI element is validated and defaults bigmapMarker.cluster = true
  4. Test drive POIs are filtered out unless it's the test drive end marker

Career Tutorial Flow (west_coast_usa)

During the linear tutorial, POIs are restricted to guide the player:

Tutorial StagePOIs Shown
Before arriving at fuel stationGas station "apex" only
Before tutorial missionTutorial arrive mission only
Before first car purchaseDealership + inspect vehicle POI
Before first car modificationService station garage computer
Car not yet bought (general)Dealership + inspect vehicle
M.clear()
M.getRawPoiGeneration()
M.getRawPoiListByLevel(levelIdentifier)
M.onModManagerReadyvalue
M.showMissionMarkersToggledvalue
-- Get POIs for current level
local pois, gen = gameplay_rawPois.getRawPoiListByLevel("west_coast_usa")
for _, poi in ipairs(pois) do
  -- poi.data.id or poi.data.missionId
  -- poi.markerInfo.bigmapMarker
  -- poi.clusterType
end

-- Force refresh
gameplay_rawPois.clear()

Dependencies

  • career_career - check career active state
  • career_modules_linearTutorial - tutorial flag checks
  • freeroam_facilities - facility/dealership/gas station data
  • freeroam_gasStations - gas station POI formatting
  • gameplay_missions_missions - mission POI formatting
  • career_modules_inspectVehicle - vehicle inspection POI
  • career_modules_testDrive - test drive filtering

Notes

  • POI elements must have data (with id or missionId) and clusterType fields
  • Invalid elements are logged and discarded via validateRawPoiElement
  • Generation counter allows consumers to efficiently detect when to refresh

See Also

  • Gameplay Achievement - Related reference
  • Gameplay City - Related reference
  • discover - Discover / Experience System - Related reference
  • Gameplay Systems Guide - Guide

Gameplay Rally Loop

Extension (`gameplay_rallyLoop`) that manages rally loop gameplay - a looping multi-stage rally system. Wraps a `RallyLoopManager` and handles lifecycle, UI streaming, debug toolbox, and mission trans

Gameplay Skidpad Test

Simple extension that runs an automated skidpad test - teleports a vehicle to a spawn point and has the AI drive a circular route.

On this page

Public APIHooksInternalsHow It WorksCareer Tutorial Flow (west_coast_usa)DependenciesNotesSee Also