This script provides a convenient way for players to receive starter packs containing predefined items by interacting with a designated NPC at a certain location. Below, you'll find everything you need to know about installing, configuring, and using this system effectively.
- Allows players to interact with an NPC to receive starter packs.
- Customizable NPC ped, position, and animation.
- Easily configurable starter pack contents.
- Server-side functionality to check and mark players who have received starter packs.
- Copy the downloaded script files into your server's resource folder.
- Ensure the script is properly included in your server configuration file (
server.cfg
) to ensure it loads correctly when your server starts. - Run the install.sql query in your database, before starting the script.
- Ensure that you have the necessary dependencies installed, ox_lib.
Configure the following parameters in the config:
Coords
: The position where the NPC will be located.Ped
: The model of the NPC (can be found in FiveM docs about peds).PedAnim
: The scenario the NPC will be performing while standing.Items
: The contents of the starter pack, defined as a table where the key is the item name and the value is the quantity.
Ensure that the following dependency is installed:
ox_lib
: Download hereox_inventory
: Download here