Jump to content

Advanced Vehicles System & Vehicle Repair & Shops


Recommended Posts

1.1 Vehicles Resource ([vehicles]/Vehicles)

  • Persistent vehicle ownership stored in vehicles.db (SQLite).
  • Admin vehicle creation via /buyVehicle (and alias /bv).
  • Garage system
    • Create/delete garage markers via ACL-protected commands.
    • Store / retrieve vehicles from garage (HTML UI).
  • Impound system
    • Admin-controlled impound yards and vehicle impound / release.
  • Car shop / dealership
    • Configurable car list in config.lua (CarShopData).
    • Vehicles spawn at configured vehicleSpawnLocations.
  • Mechanics / speedometer
    • Vehicle fuel, speedometer, damage tracking.
    • Extra commands like /rotate, /rot, /getfuel, /vseat, /hl (see Commands section).
  • Car panel
    • In‑game panel (HTML UI) for managing and selling vehicles.
  • Vehicle documents panel
    • HTML panel for viewing vehicle‑related info/documents.
  • Neon integration ready
    • haveNeon and neon fields in DB (you can connect them with your own neon resource).
  • Data persistence
    • On resource start: loads all vehicles from DB and respawns them.
    • On resource stop / player exits vehicle: updates position, fuel, health, damage states, handling, colours, etc.


       

1.2 Vehicle Repair Shop ([vehicles]/vehiclerepair)

  • Mechanic shop markers
    • Configure one or more repair shop locations.
    • When a mechanic (ACL group) drives into the marker, a HTML UI panel opens.
  • Repair system
    • Dynamic repair price based on vehicle health:
      • REPAIR_BASE_PRICE and REPAIR_HEALTH_FACTOR in server.lua.
    • Fixes vehicle and sets health to 1000.
  • Upgrade system
    • Shows all compatible upgrades with prices (per slot).
    • Purchase and install upgrades directly from the HTML panel.
    • Trial mode (preview upgrades before paying) in the advanced tuning window.
  • Handling packages & custom handling
    • Predefined packages: stock, sport, race.
    • Custom slider-based handling (max speed, damage multiplier, acceleration multiplier).
  • Storage upgrades
    • Increase trunk and glovebox capacity per vehicle model.
    • Integrates with the storage system used by Vehicles (base values are taken from/configured like the vehicle system).
  • Colour & paintjob tuning
    • Change vehicle primary/secondary/tertiary/quaternary colours and headlight colour.
    • Change paintjob (IDs 0–3) via UI and pay once when confirmed.
  • HTML UI + color picker
    • Clean browser-based repair UI in ui/index.html.
    • Integrated color picker (colorpicker/) with live preview.


       


 

https://private-user-images.githubusercontent.com/76491740/522576142-0a6cc340-380d-4287-b02f-f0604ec8f7f6.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjUyMTY5OTQsIm5iZiI6MTc2NTIxNjY5NCwicGF0aCI6Ii83NjQ5MTc0MC81MjI1NzYxNDItMGE2Y2MzNDAtMzgwZC00Mjg3LWIwMmYtZjA2MDRlYzhmN2Y2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMjA4VDE3NTgxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwZTllOTM4MDc3Yzk4ZDgzMzA0ZmU0N2I1YmIyOTNmYmFmMDAzOGMzNGY2ZDA5ZDJjZjk2YjMxZTMyYTY3N2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CSW0Oz5A_68ZvyC-k7HJILfO6POixgFu3TAguWEFLow


https://private-user-images.githubusercontent.com/76491740/522576912-e7731752-e56d-432f-958c-05071904c240.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjUyMTY5OTQsIm5iZiI6MTc2NTIxNjY5NCwicGF0aCI6Ii83NjQ5MTc0MC81MjI1NzY5MTItZTc3MzE3NTItZTU2ZC00MzJmLTk1OGMtMDU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Y1ZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KyYJsgUCyieBPh0zG7IuJapnIP8fAUiQuc4uj04uR5A

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...