jd-carspawner v0.2.1
car spawner for QBCore jobs and car rentals – Supports Different target ( qb-ox etc.. )
Table of Contents
- About
- Features
- Requirements
- Installation
- Configuration
- How it works
- Files overview
- Customization tips
- Contributing
- License
About
jd-carspawner is a lightweight resource for FiveM running QBCore that provides vehicle spawning functionality for jobs and a simple car rental flow. It keeps logic split between client and server, and all locations / values are configurable in config.lua.
Features
- Job-based vehicle spawns
- Car rental support with configurable pricing
- Configurable spawn locations (vectors) for job spawns and rental peds
- Minimal, easy-to-read Lua code (client + server)
Requirements
- A QBCore-based FiveM server (make sure
qb-coreis running on the server) - Tested with common QBCore setups — adapt to your server’s exports if necessary
ensure jd-carspawner
Configuration
All important configuration lives in config.lua.
- Spawn vectors: Job vehicle spawn locations and rental ped locations are defined in
config.luaas vectors 4 (or tables withx,y,z, and optionallyheading). To change where vehicles spawn or where the rental NPC appears, openconfig.luaand look for the sections that define spawn locations — they contain vector entries you can edit to your map coordinates.
Example formats you may find in a config file (read the actual config.lua for exact names used):
Note: There are no chat commands for spawning in this resource. Spawns are triggered by the job interactions / rental ped behavior defined in the scripts — check
config.luato see how interactions are handled and which config entries are used.
How it works
client.luahandles player interactions (menus/peds/interaction logic) and requests a spawn from the server when appropriate.server.luahandles validation (job checks, payments for rentals, etc.) and the final vehicle creation.config.luacontrols which vehicles are available, prices, and all spawn locations.
If you want to integrate the spawner into another script or call it programmatically, inspect client.lua and server.lua for the events/exports used — they show the exact event names the resource listens to and triggers.
Files overview
| File | Purpose |
|---|---|
fxmanifest.lua |
Resource manifest and dependency declarations |
config.lua |
All configurable values: vehicles, spawn locations (vectors), prices, job restrictions |
client.lua |
Client-side logic (interactions, menus, requests) |
server.lua |
Server-side validation and vehicle spawning |
client/ server/ directories |
(if present) helper modules / HTML UI / locale files |
Customization tips
- Adding vehicles: add models to the vehicle lists in
config.lua. - Moving spawns: change the vector entries for job spawns and rental ped locations in
config.lua. Use an in-game coordinate tool or a map editor to get accurate coordinates. - Permissions / jobs: adjust job names in
config.luato match your server’s job identifiers. - Economy: update rental prices in
config.luato integrate with your server’s economy.
Contributing
Contributions are welcome. Suggested workflow:
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-change) - Commit your changes (
git commit -m "Add feature") - Push and open a Pull Request
If you need help or want changes made to the README itself, open an issue or ping the repo owner.
License
MIT
jd-carspawner.zip (43.3 KB)