Guides
Advanced Starterpack Guides
Command Config
1. Configuring the Starter Pack Command
Key Fields:
enable
: Set this totrue
to activate the command. Iffalse
, the command will be disabled.command
: This is the name of the command players will use (e.g.,/starterpack
).command_help
: This sets the help description that shows up for the command, providing players with a quick explanation of its use.starterpack_type
: Defines the type of starter pack to be given. You can modify this to set different starter pack types (e.g.,normal
,vip
, etc.).
2. Configuring a Starter Vehicle
The command configuration also supports giving players a starter vehicle when they use the command. You can customize whether to include a vehicle, the model of the vehicle, and where it spawns.
Key Fields:
enable
: Set totrue
to include a starter vehicle. If set tofalse
, no vehicle will be provided.model
: The vehicle model that will be spawned for the player. You can change this to any valid vehicle model name.random_vehicle:
Spawn a random vehicle from the list(true/false)
parking
: Defines the spawn location of the vehicle. This should correspond to a predefined parking or spawn location (e.g.,pillboxgarage
). (set to nil if your garage system doesn't support parking)
Players can type
/starterpack
in the game chat to receive their starter package.If a starter vehicle is enabled, the defined vehicle will spawn at the configured location.
Configuring Starter Pack Locations
1. Location Configuration Structure
Each location is represented by a key (e.g., ["1"]
) in the Config.Locations
table. Inside each location, you can configure the starter pack type, ped (NPC) settings, safe zone options, and vehicle details.
2. Location Details
Each location can have its own distinct setup, including ped and vehicle options. Here's a breakdown of the key fields for configuring a location:
Starter Pack Settings
starterpack_type
: The type of starter pack given to the player. This could vary (e.g.,normal
,vip
, etc.).show_only_for_newbie:
Show the ped only for the player who hasn't received the starter packlabel
: The label shown to the player when they interact with the NPC (e.g., “Get your starter pack”).icon
: The icon that appears in the interaction menu (you can use FontAwesome icons, like'fa-solid fa-gift'
).
Coordinates
coords
: Defines the exact location of the ped. This usesvec4
format (x, y, z, heading
) to set the coordinates and the direction the ped is facing.
3. Ped (NPC) Configuration
Each location can optionally have a ped (NPC) that players interact with to receive the starter pack.
Ped Settings:
model
: The model of the ped to use. Refer to the FiveM Ped Models Documentation for available models.scenario
: The animation or behavior the ped will perform. Example:WORLD_HUMAN_CLIPBOARD
makes the ped appear to be writing on a clipboard.heading
: The direction the ped will face (in degrees).
4. Safe Zone (Optional)
A safe zone can be configured around the starter pack location. This prevents certain actions (e.g., combat) within the zone.
enable
: Enable or disable the safe zone. If set totrue
, you must also define the zone points.zone_points
: If a safe zone is enabled, list the points that define the boundary (vector3 coordinates).
5. Starter Vehicle Configuration
You can give the player a starter vehicle when they interact with the ped. You can customize the model, spawn points, and other details.
Vehicle Settings:
enable
: Set totrue
to give a starter vehicle to the player.model
: The model of the vehicle (e.g.,adder
,sultan
). You can find valid models in the FiveM Vehicle Models Documentation.random_vehicle
: Set totrue
if you want to give randomize vehicle to the playerteleport_player
: If set totrue
, the player will be teleported directly into the vehicle after it spawns.parking
: The name of the parking location for storing the vehicle in the database.vehicle_spawns
: List of coordinates where the vehicle can spawn. You can define multiple spawn points in case one is occupied.fuel
: The fuel level of the vehicle when it spawns (0.0 to 100.0).
6. Radius and Interaction Distance
receiving_radius
: The radius around the location within which players are eligible to receive the starter pack. Players must be within this radius to interact with the ped and receive their starter pack.distance
: The maximum distance from the ped at which players can interact with it (e.g., to trigger the command).
Last updated