Kartik Scripts

Data & Behaviour

๐Ÿ“Š What a part can show

Pick it in the right panel under Data โ†’ Shows.

Data section
The Data section of a selected part
GroupData
๐Ÿš— VehicleSpeed, RPM (x1000), Gear, Fuel, Engine health, Body health, Odometer, Throttle, Brake, Speed limit, Engine running, Seatbelt on, Seatbelt off (warning), Headlights, High beam, Left indicator, Right indicator, Cruise control, Engine damaged, Electric
โšก ElectricBattery, Low battery, Range left, Power (kW, regen negative), Power used, Regen, Regenerating, Drive mode (P R N D), In P / In R / In N / In D
โœˆ๏ธ AircraftAltitude, Vertical speed
๐Ÿ๏ธ MotorcycleLean angle, Wheelie, Helmet on, No helmet (warning)
๐Ÿšค BoatSpeed (knots), Depth under boat, Dive depth (submarine), Anchored
๐Ÿง PlayerHealth, Armour, Hunger, Thirst, Stress, Stamina, Oxygen, Underwater, In a vehicle, Server ID, Job, Cash, Bank, Cash (short, $1.2M), Bank (short, $1.2M), Clock
๐ŸŽ™๏ธ VoiceTalking, Talking on radio, On a radio channel, Voice range, Voice range name, Radio channel
๐Ÿ“ LocationStreet, Crossing street, Area, Direction, Postal, Heading, Waypoint set, Waypoint distance
๐Ÿ”ซ WeaponArmed, Weapon name, Ammo in clip, Reserve ammo, Ammo (clip / reserve), Weapon image
โœจ ScriptsStatuses and buffs other resources register: value, active, text, time left, stacks. See Custom Statuses & Buffs

Speed, altitude, odometer, range and distances follow the player's units (mph / km/h). Numbers from 0 to 100 come with a % unit.

โšก Electric data

Data
Battery0โ€“100%, the vehicle's fuel level
Range leftBattery ร— Config.EvRangeKm, in mi or km
Power (kW, regen negative)From โˆ’120 (full regen) to +300 kW. As text it shows a sign, e.g. +84 / โˆ’32. On a needle, zero sits a little over a quarter of the way along
Power used / Regen0โ€“100% each, one side at a time, bind an arc to Power used and a reversed arc to Regen for a centre-zero power meter
RegeneratingOn while braking or coasting at speed, good for turning text green
Drive modeP, R, N or D as text; In P / R / N / D are switches for lighting up one letter each

Text formats

A Text part bound to data uses a format:

FormatShows
{value}64
{value} {unit}64 MPH
FUEL {value}{unit}FUEL 54%

Set Unit size to draw the unit smaller on the same baseline, like 136 km/h.


๐Ÿšจ Warnings

For number data, Warning changes the part's colour below or above a percentage, and can make it blink, low fuel, high RPM, low health.

Warning settings
A warning above 85% in the danger colour

๐ŸŸฅ Red zones

Bars and arcs can have a red zone from a percentage onwards, with its own lit and unlit colour, like a redline. On segmented gauges only the segments inside the zone change.

Red zone settings
Red zone from 84% with its lit and unlit colours

๐Ÿ‘๏ธ Show while

Any part, or a whole widget, can show only while something is true: armed, in a vehicle, seatbelt off, armour above 0, and so on.

Show while
A part shown only while the engine is running

Parts hidden by a condition are drawn faintly in the builder so you can still select and edit them.

โœ‚๏ธ Value window ("Uses")

A part can use just a slice of a value, for example RPM from 0 to 30%. Chain several parts (30โ€“60%, 60โ€“100%) to build one gauge out of separate pieces that fill one after another.

๐Ÿงญ Where a widget shows

In the widget settings, Shows in picks the vehicle types, on foot, car, motorbike, boat, aircraft, bicycle, train, or everywhere.

Widget settings
Widget settings: Shows in, Show while and Starting position

For a widget that should only appear in electric cars, set Shows in โ†’ Car and Show while โ†’ Electric โ†’ Is on. Use Is off on your normal speedometer widget so the two never show together.

On this page