Serverside

Fixes / vehicles.meta <layout> references a layout nothing defines

Vehicles · critical severity · found by reading the files

vehicles.meta <layout> references a layout nothing defines

Client crashes on SPAWNING a specific car (not on join, not at mount).

What it means

Vehicle <car> declares layout <layout>, which no vehiclelayouts.meta defines. Undefined layout hash crashes the client on spawn.

Step 1
Read data/<car>/vehicles.meta, capture <layout>.
Step 2
Search every vehiclelayouts.meta for that layout name.
Step 3
If nothing defines it AND it is not a vanilla layout name -> this is the bug.

How to fix it

  1. Rewrite <layout> to a genuine VANILLA layout — vanilla always loads and depends on nothing.
  2. Known-good remaps: LAYOUT_DELTA_STD->LAYOUT_STANDARD, LAYOUT_DELTA_LOW->LAYOUT_LOW, LAYOUT_DELTA_PICKUP->LAYOUT_STANDARD, LAYOUT_DELTA_VAN->LAYOUT_VAN, LAYOUT_TANK_M3A3->LAYOUT_TANK.
  3. Back up the original meta before overwriting.
  4. Takes effect on restarting the vehicle resource + clients rejoining.

When it is not this

Many real vanilla layouts are never defined in any pack - LAYOUT_STD_TECHNICAL, LAYOUT_VAN_MENACER, LAYOUT_RANGER_CARACARA, LAYOUT_4X4_DUBSTA, LAYOUT_LOW_INFERNUS2, LAYOUT_STD_COQUETTE2, LAYOUT_BISON are all legitimate. A prefix-guess allowlist once flagged LAYOUT_BISON across 130 working cars. (2) Layouts resolve GLOBALLY across the whole data/** tree. Scanning a subset and declaring a layout undefined is invalid - it may be defined in a folder you did not pull. Only assert this after a FLEET-WIDE pull of vehiclelayouts.meta. (3) ⭐ NON-ENTERABLE vehicles do not need a seat layout. Trailers, and to a lesser extent bicycles and novelty vehicles, routinely ship LAYOUT_UNKNOWN or a made-up name because nothing ever sits in them, so the layout is never resolved. On a real fleet 16 of 22 flagged vehicles were trailers (20fttilt, bigtex20/40, DLTBOAT, ftrailer, GODzSHOWHAULER, carretinha...) with zero crash history. Weight the finding by whether the vehicle is ENTERABLE - a truck or car with an undefined layout is the real risk (that is what crashed TIENDITAMODS_GMC); a trailer almost certainly is not.