Configuration
whip_core's settings live in its config.lua, read by server and client. The ones an owner changes are also in /whip → Settings → Config; timings, reaches and fine tuning are config.lua only.
Most settings apply at once for every player; those marked Next restart wait for whip_core's next start. Another resource can't read whip_core's Config: use the export for the value, such as GetPockets().
Changing a setting in game#
Only a permanent admin sees Config: whip.devtools from server.cfg, not dev tools given in the Player Manager. Pick a group, change values, press Apply.
- Checked as you type. The server checks again, and an Apply is all or nothing: one refused value saves nothing, and the bar names it.
- Each row shows its
config.luadefault, Reset, and who changed it last. - Positions and camera shots have Use where I stand, Place camera (a free camera; Enter keeps, Esc cancels) and Use my camera. Character hero shots are made with Edit in world.
- Fixed rows, such as
GaragesandShops, only seed the database; a button goes to where the real ones are edited.
A saved value wins over config.lua until you press Reset. Saved values live in whip_settings (history in whip_settings_log) and are copied to settings.json (read by players' games) and server_settings.json (never downloaded). Don't edit either: WHIP rewrites them from the database at every start.
Items are edited in /whip → Economy → Items. Resources add their own pages beside Config: Settings pages for your resource.
Characters and money
| Setting | Default | Description |
|---|---|---|
MaxCharacters | 4 | Characters per account, up to 30 |
DefaultCash | 500 | A new character's cash |
StartingBalance | 1000 | A new character's bank balance |
DefaultAccountLabel | 'Personal Account' | Name of the account made with a character |
MaxExtraAccounts | 5 | Savings and shared accounts per character (personal and job accounts don't count; 0 = none) |
BlockOwnCharacterTransfers | true | A player's characters can't move money to each other through the bank, so starting money can't be farmed. Cash handed over in the world isn't tracked |
DefaultSpawn | vector4(-1023.03, -1660.96, 4.62, 44.92) | Where new characters appear |
Joining
| Setting | Default | Description |
|---|---|---|
Landing | table | The screen after loading: a camera shot, the WHIP logo and "Press any button to continue". enabled = false skips it. Also camera, prompt, look (sky and clock), fades, streamMs. /logout skips it |
CharSelect | table | The character screen. slots: a hero shot per character place (camera, pos, a scenario/anim/emote, look, props); a place without one reuses another, and shot 1 must exist. quietBucket (no traffic or people), preloadShots, spawnPicker (pick where to arrive on the 3D map; false: fade to black, as dead and new characters always get). Fades: Config.CharSelectFades |
SpawnPoints | table | Extra spawn picker places, beside the last position and the character's properties: { id, label, pos }, pos a vector4. Server only. A resource adds its own with RegisterSpawnPoint |
Creator | table | Where a new character is made (spawn), look, fades and holds; saving sends them to DefaultSpawn. maxOutfits (20, up to 100): saved outfits per character (clothes and accessories only) |
ArrivalScenes | table | A GTA character-switch scene as the picture returns after picking a character. enabled = false: a plain fade |
ArrivalScenes in full
onFoot: one at random, skipping any whose walk hits a wall. Indoors, only lines markedindoors.inVehicle: left in a car still withinvehicleRange(400 m), they wake up in it (their seat or the first free). No scene on a bicycle, boat or aircraft.onBike: the motorbike is stood up and they arrive beside it.nearCar: a car of theirs withinnearCarRange(25 m), they arrive at it.- Line fields:
from/to(0-1),vehicleClip(lined up with a real vehicle),getsIn(ends in the seat),prop(else the game's own). - Config → Joining lists each scene; Add scenes picks from every switch scene (
client/arrival_list.lua) and Watch plays one where you stand.
Inventory and saving
| Setting | Default | Description |
|---|---|---|
AccessoryStrip | true | The strip beside the inventory: a Phone slot, a Money slot (cash or a wallet) and three Key slots (a key there goes in the ignition). false: its contents move to the inventory at next login. Next restart. Read pockets with GetPockets() |
ContainerSlots | player 30, accessory 5 | Slots per player container |
MaxWeight | player 80, accessory 10 | kg. player includes the strip; accessory is the strip alone |
WeightUnit | 'kg' | What the inventory and shops show weights in until a player picks their own (Server Settings → Map & HUD): 'kg' is grams under a kilo and kilograms from one up, 'lb' ounces under a pound and pounds from one up. Weights in config.lua and RegisterItem are kilograms either way |
DropOnFullInventory | true | AddItem drops what can't fit at the player's feet (full inventories). false: it returns false and creates nothing |
MaxGroundPilesPerDrop | 50 | Most piles one drop makes (one per slot's worth); past it, items are shared across this many |
EnableInventoryUI | true | false: no WHIP inventory screen (Replacing the inventory UI); the system keeps running |
FlushInterval | 1000 | ms between write-behind flushes: what a crash can lose (Save System) |
PlayerPositionSaveInterval | 30 | Seconds between saves of position and stats such as hunger. Health and armour save at once |
EnableTestSeams | off | Lets a test resource inject database failures. Needs set whip_test_seams true; never on a live server |
ShowPlayerNames | 'nearby' | Who sees another player's character name (GetPlayerFullName, the phone, the Director; CanSeePlayerName): 'nearby', 'always' or 'never' |
PlayerNameRange | 25.0 | Metres, for 'nearby' |
DependentResources | {} | Resources to restart with whip_core. Leave empty; use Whip.register |
PlaceItemRange | 10.5 | Metres from the camera an item can be set down |
ItemNotices | { enabled = true, removed = true } | The item's picture and "Burger x2" for two seconds in the hint capsule when a player gets (green) or loses (red) an item, any way. Several take turns. removed = false: only what they get |
GiveModeStyle | { walk = 'trash', speed = 'jog' } | Movement while holding an item out: walk (a /walk name; nil: own), speed ('jog', 'walk' or nil). SetGiveModeStyle overrides it |
ThrowKnockdown.Enabled | true | A thrown item that hits hard enough knocks a person down and bounces off. Never in a no-PvP zone or on god mode |
ThrowKnockdown.MinSpeed | 8.0 | m/s the item must still be flying at (a throw starts at 18) |
ThrowKnockdown.MinImpact | 8.0 | Its weight in kg times its speed in m/s. At a normal throw a 1 kg item is about 17 and knocks someone down; a 0.3 kg sandwich is about 5 and doesn't; cash never does |
ThrowKnockdown.RagdollMs | 2500 | ms on the ground, then 1.5 s before another knockdown |
ThrowKnockdown.Npcs | true | Street NPCs fall too |
DefaultGroundProp | 'prop_cs_cardbox_01' | Model for a dropped item with no prop |
ContainerDefaultSlots / ContainerDefaultWeight / ContainerDefaultProp | 20 / 100.0 / 'prop_cs_cardbox_01' | A stash's values when it sets none |
Stats
| Setting | Default | Description |
|---|---|---|
Hunger / Thirst | true | Drains, saves, has a gauge and costs health at 10 or below (Config.NeedDamage: every 10 s under 10%; 0 for none). Off: none of that; food and drink still work |
RespawnTime / RespawnLocations | 10 / three hospitals | Seconds before respawn, and the hospitals (vector4s, one at random). See HoldRespawn |
DeathScreen | true | false: draw your own from whip_core:death:screenChanged |
HungerMinutes / ThirstMinutes | 120 / 90 | Minutes from full to empty (1 to 1440) |
StatOrder | { 'health', 'armour', 'hunger', 'thirst', 'oxygen' } | Gauges left to right; unlisted ones go after |
StatHitFlash | health 10, armour 10 | Drop (% of gauge) that brings the gauges back while chat or a notification has the capsule. 0 never |
OxygenSeconds | 20 | Seconds of breath under water (1 to 45) |
OxygenRecoverPerSecond | 6 | Breath back per second, out of 100 |
OxygenGraceSeconds | 1 | Seconds without breath before drowning (0 to 10) |
Stats | {} | Your own stats (WHIP's are in server/stats.lua). See Stats |
StatsTickInterval / StatsSyncInterval | 1 / 5 | Seconds between server stat processing, and between full syncs to the client |
StatsSetGuardWindow | 2 | Seconds after WHIP sets health or armour in which a 0 from the game is ignored |
HUD, minimap and controls
| Setting | Default | Description |
|---|---|---|
MinimapMask | 'rounded' | 'square', 'rounded' or 'circle'. The minimap is WHIP's own 3D map; players tune it in Server Settings → Minimap. GTA's radar shows only in /radardebug |
HudSkin | 'black' | 'black': black discs in a draining white rim, a framed minimap, a blue route. 'classic': discs that fill white, in a capsule. Not the vehicle dial |
AimDot | true | A dot replaces GTA's reticle (not for melee or the petrol can), red when the muzzle is against a wall |
HudDeveloperMark | true | The amber developer-mode mark among the gauges. false hides it, for filming |
CameraHidesDui | false | true: the camera item also hides WHIP's things in the world (/me bubbles, conversations, Director marks) |
MapOptions.onFoot / .inVehicle | 'player' | Minimap on foot / in a vehicle: 'player' (each chooses), 'on' or 'off' |
MapOptions.forceMinimap | false | true: everyone gets MapOptions.minimap, locked |
MapOptions.minimap | table | fps (120/60/45/30/15), border (true, 'outline', false), northUp, centre, markerSize (%), markersUpright, viewFoot/viewSlow/viewFast (metres), speedFrom/speedTo, tiltFoot/tiltVehicle/tiltWithSpeed/tiltFast (degrees) |
ActionMode | { Disable = true } | Turns off GTA's combat stance after shooting |
IdleCam | { Disable = true, ResetMs = 10000 } | Turns off GTA's idle camera; ResetMs resets a driver's idle timer |
Controller | table | Gamepad layout and timings (below) |
Keyboard | { Languages = { 'en' }, Default = 'en' } | The on-screen keyboard's languages, each a pack in html/keyboard/ (its README explains adding one). Default: for players whose GTA language isn't listed. Read at start |
Controller in full
Layoutbuttons:dpad_up,dpad_down,dpad_left,dpad_right,l3,veh_a,foot_b, and with LB heldlb_a,lb_b,lb_x,lb_y,lb_dpad_up…lb_dpad_right.- Each holds a WHIP action (
'radial','engine','inventory','sprint'), a registered action, orfalse(free). - Defaults:
dpad_up = 'phone',veh_a = 'nitrous',lb_a = 'talk',lb_b = 'gunny_check_ammo',lb_x = 'radio'. A named action keeps its button while its resource runs. RadialHoldMs,SprintDoubleClickMs,SprintOnA;VehicleControls(true) shows a car's buttons forVehicleControlsMs(5000).- Players remap in the pause menu (saved on their PC). D-pad up/down, A and LB on prompts are fixed.
World interaction
Ranges in metres.
| Setting | Default | Description |
|---|---|---|
InteractVisibleRange / InteractActiveRange | 5.0 / 2.0 | Where the circle appears, and where E works |
InteractFocusCone | 40.0 | Degrees from the view's centre a prompt must be to win (InteractFocusConeNear / InteractFocusNearWeight for doors) |
InteractDistWeight / InteractCameraWeight | 0.6 / 0.4 | A scoring helper's defaults; the E prompt doesn't use them |
ContainerInteractRange / ContainerStreamRange | 2.5 / 100.0 | Open a container (server allows +2 m, counted from the edge of a prop set up in /whip, where its prompt is); spawn its prop |
ContainerPrompt | 'face' | A stash prompt's default spot: 'middle', 'side' (nearest side) or 'face' (follows you). Players can pick their own |
ShopInteractRange / ShopStreamRange | 2.5 / 100.0 | The same, for shops |
ShopBasketSlots | 10 | Lines in a basket (1 to 50) |
GtaStores / GtaStoreCatalog | off / { food = 50, drink = 30 } | GTA's nine 24/7s and five LTDs as shops (a keeper behind the till, a map icon), each made once and then managed in /whip. On with set whip_gta_stores true in server.cfg (WHIP's txAdmin recipe sets it for a new server) or on /whip → Settings → World & gameplay. Off makes no more and deletes none; one deleted in /whip is not made again. Leave it off if another resource runs your stores |
ShopTalk.enabled | true | Shopper and shopkeeper speak in /me bubbles (Shop talk) |
ShopTalk.batchSeconds / .keeperDelay | 1 / 1.2 | Seconds of quiet before basket changes are said; seconds before the keeper answers |
ShopTalk.open … ShopTalk.keeperLeave | lists | Lines for open, add, change, remove, paid, broke, leave and their keeper versions, with {n}, {item}, {total}, {items}. config.lua only |
NetworkRange | 424.0 | How far news of a place reaches (chat, throws, a car's look). /global reaches all |
DoorInteractRange | 3.0 | To use a door |
GroundItemPickupRange / GroundItemStreamRange | 2.0 / 100.0 | Items in the Ground panel; dropped props spawn. Door locks use the stream range: keep it 50+ |
ZoneCheckRange | 200 | Furthest zone tested |
ZonePollInterval / ZoneVehiclePollInterval | 300 / 2000 ms | Zone re-checks for players / vehicles |
InteractRenderer | 'world' | 'world': 3D prompts, no lag, hidden behind walls. 'nui': an overlay a frame behind; doors show flat |
PropPromptDefaultOffset | Empty | Default offset, with optional heading, visualOffset and radius, by model name or hash. Explicit action placements win. /promptoffset prints entries; edit config.lua, then restart the resource |
Interact3D | table | The 3D prompts' look: badgePx, labelPx, fades, depthBias, theme ('keycap' or 'classic'), dark, styles and groupStyles (Styles) |
DoorHandleAlong / DoorHandleHeight | 0.85 / 1.05 | A door circle's spot: fraction toward the free edge, metres up. Garage doors (over 1.7 m wide) get a sliding padlock |
DoorPromptOffsets | {} | Per-model fixes: [GetHashKey('model')] = { x, y, z } from the door's origin |
GroundItemCellSize and ZoneCellSize (both 50) size the spatial grids. Door and ground updates travel on GroundItemCellSize's: keep it well above 25 m.Vehicles
| Setting | Default | Description |
|---|---|---|
VehicleTrunkSlots / VehicleTrunkMaxWeight | 40 / 200.0 | Boot capacity |
VehicleGloveboxSlots / VehicleGloveboxMaxWeight | 10 / 20.0 | Glovebox capacity |
MotorbikeGloveboxSlots | 1 | A motorbike's glovebox. Bicycles have none and need no key |
VehicleKeySlots / VehicleKeyMaxWeight | 1 / 1.0 | The ignition: one key |
VehicleLockRange | 8.0 | Metres to lock with L |
UnlockOnExit | true | Getting out unlocks the car. false: it stays locked |
LockpickGame | 'ring' | Skill check for lockpicks and the ignition hack, or a Whip.skillCheckGame game (falls back to the ring) |
Seats | { NoAutoShuffle = true } | Passengers stay in their seat (Vehicles & Keys) |
VehicleTrunkRange | 2.5 | Metres from the rear to open the boot |
GarageSpotRadius | 3.5 | How close to a bay's middle a car must be to store there. Occupancy uses the bay's outline |
| Fuel | whip_fuel | Fuel is whip_fuel's (its config.lua, /whip → Settings → Fuel). Without it, cars need no fuel |
VehicleStats | engine | Gauges every car carries; add yours with RegisterVehicleStat |
VehicleDamage | { remember = true, engineFloor = 100 } | Cars keep damage, torn doors and burst tyres (not dents). engineFloor: lowest engine health on spawn (Damage a car keeps) |
VehicleHud | table | The rev dial (flight instruments in aircraft, power on boats). Below |
VehicleStatsTickInterval | 1 | Seconds between checks of stats with a decay. Next restart |
VehiclePositionSaveInterval / VehiclePositionEpsilon | 30 / 2.0 | Seconds between car position saves; metres moved to save |
VehicleStorageKeepRange | 5.5 | How far a player can stray with the boot open. No effect below VehicleTrunkRange + 3.0 |
DrivingCamera | { Enabled = true, Default = false, Shake = 1.0 } | The driving camera in Server Settings → Vehicles: Enabled (offered at all), Default (on for a player who never chose), Shake (0 to 3; 1 as made) |
BikeAutoHelmet | false | true: GTA's helmet on a motorbike |
ExperimentalDriveSync | false | true: every game plays a Director car's recorded drive on its own copy |
InteractPress | table | The hand press (PlayPress): enabled, maxDistance (2.5 m), followHand |
LogVehicleStorage | false | Logs every boot, glovebox and ignition open, to find why one didn't |
VehiclePartPrompts | table | Boot, bonnet and door circles: enabled, drop, rise, clearance, range, activeRange, scale, doors' inset; bike, bicycle, boat (/vehpoints shows them) |
VehiclePartPromptScan | 15.0 | How far away part prompts are prepared |
VehiclePartOpenAngle | 70.0 | Degrees an open door swings |
VehiclePartHingeTopFrac / VehiclePartHinges | 0.52 / {} | Guessing which way a boot opens; per-model fixes |
VehicleBackDoors / VehicleBackDoorClasses | {} / { 10, 11, 12, 17, 18, 19, 20 } | Vans whose back doors are the trunk, found from the model on these vehicle classes (industrial, utility, vans, service, emergency, military, commercial). true or false by model hash to correct one |
VehicleFillers | {} | Fuel filler side by model: left, right or rear |
VehicleMakeLogos | {} | Logo files spelled differently from the make, e.g. ['emperor'] = 'emporer' |
GarageSpotPromptHeight | 1.22 | Metres a bay's prompt floats up |
VehicleHud in full
attitude('ball'or'flat') andflipBank: an aircraft's horizon.speedUnit('mph'or'kmh'),rpmMax(thousands, 2 to 20),redline(share of the dial),rpmElectric(20).idleRpm(0.8= 800 rpm);idleMeasured = trueuses each engine's own idle (data/rpm_by_model.lua).rpmByClass(openwheel = 15) andrpmByModel(sultan = 8.5, which wins).dashSkins: each car's GTA dashboard look (data/dash_skins.lua, 555 vehicles).- The dial follows the engine: a swap with
SetVehicleRevRangechanges it./vehiclehud offhides it for one player until reconnect.
ATMs
WHIP finds these models wherever they stand. AtmProps and the two ranges are also on /whip → Settings → Characters, money & jobs, live: an empty model list turns WHIP's ATMs off, for a server that uses another ATM resource.
| Setting | Default | Description |
|---|---|---|
AtmProps | 4 models | ATM models. Add an MLO's machine here |
AtmSearchRange | 30.0 | How far out machines are looked for |
AtmVisibleRange / AtmActiveRange | 3.0 / 1.4 | Circle shows; circle works |
AtmBadgeOffset | table | The circle's spot per model (side, out, up, yaw), plus default |
AtmMaxDigits | 9 | Longest amount ($999,999,999) |
AtmExtraPositions | {} | Machines a map mod or an MLO adds, for IsNearAtm and GetNearestAtm (a vector3 at each one's base) |
For a resource of your own that wants the player standing at a machine, the server knows where GTA's own are (server/atm_positions.lua, 121 read from the game's map): IsNearAtm(source, range?) answers true, at or false, why, and GetNearestAtm(coords) the machine and its distance. Machines a map mod or an MLO adds go in Config.AtmExtraPositions (vector3 at the machine's base). WHIP's own ATMs don't ask this, so a machine missing from the list still works for them.
Time and weather
| Setting | Default | Description |
|---|---|---|
TimeScale | 1.0 | Normal GTA speed: 48 real minutes a day |
StartTime / StartWeather | { hour = 12, minute = 0 } / 'CLEAR' | On a database that never saved a clock |
TimeSyncInterval | 60000 ms | Clock drift correction |
WeatherTypes | table | Names SetWeather accepts |
Furnisher, props and lore
| Setting | Default | Description |
|---|---|---|
FurnishPlaceRange | 8.0 | A picked prop lands on what you look at within this; further, 3 m ahead |
FurnishMoveSteps / FurnishTurnSteps | { 0.05, 0.25, 1.0 } / { 15.0, 45.0, 1.0 } | Shift-drag snaps (metres / degrees); G cycles |
PropSetMaxProps | 256 | Most props in a set (ShowPropSet); about 100 bytes each to every player |
LorePictureLinks | { 'https://r2.fivemanage.com/' } | Allowed picture link prefixes (lore characters, phone cards). Every player loads them: use a host you trust |
LoreVoice | table | Lore NPCs speaking (needs whip_voice's bot): Enabled, Links, Range (15 m), GreetRange (4 m), ByeRange (10 m), GreetAgainMinutes (3), ReactAgainSeconds (6), Gestures |
PropertySignPosts | 2 boards | For Sale boards: model, label, panel (w, h), ink, accent, back. config.lua only |
PropClusters / PropCategories | 7 / 35 | The furnisher's groups and categories, each with a glyph |
PropSeeds | {} | Your props beyond the ~15,000 shipped: ['prop_model'] = 'category'. Also /prop add <category>, /prop remove and /propcheck |
Emotes, /me and conversations
| Setting | Default | Description |
|---|---|---|
Emotes | table | cancelKey ('X'), placeRange (6.0 m). The menu opens from the F1 wheel and /emotes. The list is shared/emote_list.lua |
Bubbles | table | /me: range (20 m), duration (5000 ms), maxLength (120), maxStack (3), maxPlayers (6), height, size |
Conversations | table | NPC dialog (Conversations): size, height, margin, swing, range (6.0 m), speakingText, busyText, watcherBubbles, npcLines (1 to 4) |
Logs and timings
| Setting | Default | Description |
|---|---|---|
LogSecureRejections | true | Prints refused SecureEvents and SecureCallbacks; repeats are counted every 5 s. A flood means something real is refused |
ActivityLogDays | 30 | Days of Activity Log kept |
PlayerManagerSessionWarn | false | true: the Player Manager flags two game clients on one licence ("2 SESSIONS") |
PlayerPositionEpsilon | 2.0 | Metres moved before a player's position saves again |
GroundSyncInterval | 1 | Seconds between grid cell checks (dropped items, door states) |
Content tables
Config.Items, Config.Shops, Config.Garages and Config.JobDefaultRoles define the world's contents and are read at startup. Items: Item Definition Schema.
Settings explained with their system
| Setting | Where |
|---|---|
InventoryRenderer | Building a whole custom inventory UI (whip_core/docs/nui-inventory.md) |
WeaponGuard | PermitNativeWeapon |
JobOneCharacterPerAccount, JobDutyOneAtATime | Jobs & Business |
VehicleStatsSaveInterval | Save System |
NpcVehicleLockRange | Vehicles & Keys |
GaragePositionHelper | Position Helper |
GarageWizardReach | The bay tool, the wizard |
PropertyMaxObjects, PropertyKeyGrantRange, PropertyStreamRange, PropertyFurnitureDistance, PropertyFurnitureRooms, PropertySignPlaceRange | Properties & Homes |
PropertyStashProps, PropertyStashLimit | Stashes |
ZoneTrackInterval | Zones (Server) |
SkillCheckHoldMs, SkillCheckMouseSpeed, SkillCheckDifficulty | SkillCheck |
Theme | Theming & Skins |
MediaBase | Media packs |
Sentinel | Sentinel |
Voice (whip_voice's config.lua) | Voice |