Installation ​
- Install np_garages. Startup applies the table DDL in
sql/install.sql; you can also apply that file manually. Run each unapplied file undersql/migrations/once on an existing database.CREATE TABLE IF NOT EXISTSdoes not upgrade existing tables. Migration 003 adds the durable ownership-transfer commit receipt; apply migrations 002 and 003 before enabling the matching np_dealership handoff. Migration 004 adds the nullablegarageproperty-assignment column to defaultowned_vehicles; adjust the table name ifConfig.Database.vehiclesis customized. If a compatible nullable column already exists, verify it and mark migration 004 applied without executing its ALTER. Migration 005 adds the nullable stall ID and unique garage/stall reservation; apply it before enabling anymode = 'stall'location on an existing database. Migration 006 creates the durable missing-event retry queue. Startup upgrades an earlier 006 table that lacksevent_token; migration 007 performs the same backfill when schema changes are managed manually. - Start oxmysql, es_extended, and np_vehiclehandler before np_garages.
- Configure the owned_vehicles column names, garage locations, classes, and integration resource names in shared/config.lua.
- Start np_phone after np_garages if you want the Garage app read model and valet handoff. Set Config.City.valetSpawn = false in np_phone to avoid a second vehicle spawner. Keep phone valetFee = 0, impoundFee = 0, and impoundReleaseDb = false while handoffs are asynchronous.
- Ensure the deployed vehicle handler supports the custody suppression behavior before enabling impound projection updates.
- For resident property bays, install the matching np_housing provider-v1 implementation and ensure np_garages before np_housing. The canonical ESX owned-vehicle table must have a nullable garage column, and Config.Compat must exactly match np_garages Config.Database. Property store/take stays unavailable until database, provider, handler and custody sync are ready.
For physical parking, configure a static mode = 'stall' garage with a stalls map keyed by stable IDs. Each entry needs x, y, z, and a radius up to 12 meters. A player must drive an authorized vehicle into one of those positions to store it. np_garages keeps the existing persistent, always-present np_vehiclehandler entity at its saved transform; taking it out requires standing within 8 meters and reuses that same entity. Physical stalls do not support virtual transfers or phone valet delivery. Custody suppresses the vehicle through np_vehiclehandler before the stall reservation is released.
ESX owned_vehicles remains canonical for ownership and full properties. Back up the database before installing schema or migration changes. The delivery-pending migration adds the state used when a dealership vehicle cannot yet be assigned to a compatible garage.