How how941201/dg-rental works
Project type and purpose
• This is a FiveM “resource” (mod) built on the QBCore framework. Its sole purpose is to add an “advanced car rental” feature, letting players rent vehicles, park them in garages, and have the rental status recorded in the shared database.
• Key indicators:
• client/ and server/ folders with .lua scripts
• fxmanifest.lua (FiveM resource manifest)
• rent.sql (database schema change)
• README’s mention of qb-core, qb-target, qb-menu
File structure
Top-level files:
• README.md – high-level description & installation steps
• fxmanifest.lua – defines resource, tells FiveM which files to load on client vs. server
• config.lua – configurable constants (e.g., rental fees, garage locations)
• rent.sql – SQL to add a rent column to player_vehicles table
Directories:
• client/client.lua – UI and in-game interactions (spawn vehicle, park vehicle, menus, target zones)
• server/server.lua – event handlers, database reads/writes (marking rent start/end)
• locales/en.lua – text strings for UI in English
README for additional insights
• Dependencies: qb-core framework (core API & database layer), qb-target (3D target zones to trigger menus), qb-menu (in-game UI)
• Installation: alter the player_vehicles table to add the rent column so server code can store a timestamp or rent status