API ReferenceGE Extensionsflowgraphnodesvehicle
Set License Plate
- **Node Name:** `Set License Plate`
Overview
- Node Name:
Set License Plate - Category: (once behaviour)
- File:
extensions/flowgraph/nodes/vehicle/setLicensePlate.lua
Changes a vehicle's license plate text. Only fires once until reset. Supports a dedicated reset impulse pin.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (impulse) | Triggers the plate change |
reset | flow (impulse) | Resets the node so it can fire again |
vehId | number | ID of vehicle. If empty, uses player vehicle |
text | string | Text to display on the license plate |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (impulse) | Fires once after the plate is changed |
Internals
Key Methods
| Method | Description |
|---|---|
init() | Sets self.ready = true |
_executionStopped() | Resets self.ready to true |
work() | Handles reset logic and one-shot plate text change |
How It Works
- The node starts in a
readystate. - When the
resetimpulse fires, the node returns to thereadystate. - When
flowfires and the node isready:- Resolves the vehicle ID (pin value or
be:getPlayerVehicleID(0)). - If
textis not empty, callscore_vehicles.setPlateText(text, vehId). - Fires the output flow impulse.
- Sets
ready = falseso it won't fire again until reset.
- Resolves the vehicle ID (pin value or
- If not ready or no flow, output flow stays false.
Usage Example
-- In a flowgraph - set custom plate text:
-- [Trigger] → [Set License Plate].flow
-- [String: "BEAM01"] → [Set License Plate].text
-- [Vehicle ID] → [Set License Plate].vehId
-- Direct Lua equivalent:
core_vehicles.setPlateText("BEAM01", vehicleId)Key Dependencies
core_vehicles.setPlateText(text, vehId)- sets the license plate text on a vehiclebe:getPlayerVehicleID(0)- gets the player vehicle ID as fallback
See Also
- Align for Coupling (Flowgraph Node) - Related reference
- Apply Velocity to Vehicle (Flowgraph Node) - Related reference
- Boost Vehicle (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide