NullSect
Systems nominal

Docs / Rent a Car / Installation

Installation — ns-rentacar

  1. Put the ns-rentacar folder into your resources (e.g. resources/[nullsect]/ns-rentacar).

  2. Make sure oxmysql starts before it. With Config.Database.autoMigrate = true (default) the tables are created on the first start. Otherwise import sql/ns-rentacar.sql manually.

  3. Start your vehicle keys and fuel resources before ns-rentacar (they are found automatically).

  4. Add to server.cfg:

    ensure ns-rentacar
    add_ace group.admin ns-rentacar.admin allow
    
  5. Place the agencies in game (the shipped positions are examples): type /rentaledit, pick an agency, press Go to teleport there and Move on the counter ped, a parking space or the return lot. A ghost follows you; press E where it should be (Backspace / X cancels). Changes apply to every player at once, no restart.

  6. Restart the server.

Verify

CheckExpected
Server console[ns-rentacar:SV] [INFO] ready (framework=qbox, keys=qbx_vehiclekeys, core=…)
Databasetables ns_rentacar_meta, ns_rentacar_rentals, ns_rentacar_points and ns_rentacar_agencies exist
In gameblips on the map; the counter opens the catalog; renting seats you in a fueled car with keys
Returnpark in the yellow lot, open the counter, "Return car" refunds the deposit
/rentalend <id>works for admins, refused (and logged) for normal players

Troubleshooting

  • oxmysql is not started → start oxmysql before ns-rentacar.
  • Migration v… failed → the database user needs CREATE / ALTER permission, or import the SQL file.
  • No framework adapter is active → Config.Framework names a framework that is not started.
  • "The parking spaces are full" → a vehicle stands on every spawns point of the agency; add more spaces.
  • No keys → set Config.VehicleKeys.provider to your resource or use 'custom'.

Cart

Your cart is empty.