A simple, customizable resource for Qbox on FiveM, providing server owners with an NPC that gives out vehicles to players. Easily configure the type of car and the PED model through server convars.
- NPC Giveaway: Adds an interactive NPC to your Qbox server that distributes vehicles to players.
-
Download the resource:
- Clone the repo or download the ZIP and place the folder in your server’s
resourcesdirectory.
- Clone the repo or download the ZIP and place the folder in your server’s
-
Add to your server.cfg:
ensure Qbox-Car-Starterpack
-
Configure the resource via convars in your server.cfg:
setr starter_given_vehicle "adder" # Replace with the vehicle you want to give (e.g., "sultan", "zentorno") setr starter_npc_model "a_m_m_skater_01" # Replace with the desired PED model
-
Add Sql table to database:
- Run Mysql.sql on your database file to create necessary table for the resource
- The configured NPC will spawn in the designated location.
- Players can interact with the NPC to receive the specified vehicle.
- Adjust
starter_given_vehicleandstarter_npc_modelconvars at any time to update the NPC's behavior. - Edit the vector4 on the top of client.lua with the location and heading you want to put the npc at.
setr starter_given_vehicle "sultan"
setr starter_given_vehicle_two "limo2" --Optional second vehicle to give
setr starter_npc_model "a_m_m_eastsa_01"