Installation — ns-rentacar
-
Put the
ns-rentacarfolder into your resources (e.g.resources/[nullsect]/ns-rentacar). -
Make sure
oxmysqlstarts before it. WithConfig.Database.autoMigrate = true(default) the tables are created on the first start. Otherwise importsql/ns-rentacar.sqlmanually. -
Start your vehicle keys and fuel resources before ns-rentacar (they are found automatically).
-
Add to
server.cfg:ensure ns-rentacar add_ace group.admin ns-rentacar.admin allow -
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. -
Restart the server.
Verify
| Check | Expected |
|---|---|
| Server console | [ns-rentacar:SV] [INFO] ready (framework=qbox, keys=qbx_vehiclekeys, core=…) |
| Database | tables ns_rentacar_meta, ns_rentacar_rentals, ns_rentacar_points and ns_rentacar_agencies exist |
| In game | blips on the map; the counter opens the catalog; renting seats you in a fueled car with keys |
| Return | park 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.Frameworknames a framework that is not started.- "The parking spaces are full" → a vehicle stands on every
spawnspoint of the agency; add more spaces. - No keys → set
Config.VehicleKeys.providerto your resource or use'custom'.