As of now, it only supports ox_inventory and qb/ps-inventory. However, I will be adding the Quasar inventory as soon as possible. It will be updated today, but you can also do it by going to server/main.lua > line 138. See the image below for the highlighted section.
Sure, according to the GPL v3 license, you have the freedom to modify and redistribute the script as long as you adhere to the terms of the license. Just make sure to provide proper credit as you mentioned. Looking forward to seeing your enhancements!
You can adjust the vehicle_spawn coordinate on the config
Config.EnableStarterVehicle = true -- if you want to give starter vehicle to player
Config.StarterVehicle = {
model = 'adder',
teleport_player = true, -- player will be teleported to the vehicle
vehicle_spawn = vec4(-1040.123047, -2727.138428, 20.046143, 238.110229), -- vehicle spawn location and heading
fuel = 100.0, -- fuel level of the vehicle
}
We are using Qb-Core (Qb-Target) as well as PS-Inventory. Are you familiar with how to fix this? The starterpack script gives a vehicle when a player third-eyes the NPC character, although does not give any items to the player.
I will try to install ps-inventory on my end to see if we encounter the same error, and I will fix it as soon as possible. Sorry for the inconvenience.
Added: Error handling for inventory resources ensures that if there’s an error (for example, items not existing), it won’t break the flow of the program. Instead, it continues to give the other items that do exist.
I understand now. Actually, this was already in my mind when I was in the process of making the script. LOL! But suddenly, I don’t understand why I didn’t add this feature, where it should check if the spot for the vehicle has already been occupied by another vehicle. So with that, it should spawn next to the other vehicle. I will add this as soon as possible. Thanks for the clarifications
Revisions: Implemented a new approach for vehicle spawns to prevent collisions when multiple players receive their starter packs simultaneously.
Revised: StarterVehicle function to check if player is in any vehicle then return error
Revisions: Added a new option, receiving_radius, and revised the receiving point function accordingly.
New Feature: Introduced an Alert Dialog feature as requested by the community.
[TODO]
Quiz Option: Implement a quiz feature before players can receive their starter pack. The quiz could cover city/server rules to ensure new players understand them.
Starter pack as a Gift Item: Consider offering the starter pack as a gift item instead of providing it directly. This would allow players to claim their freebies at their convenience.
Script Optimization/Simplification: Seek opportunities to optimize and simplify the script. (Details to be provided)
Hey, just headed to bed rn, so wont be back for a bit, but having some issues… when i go up to the character to collect from, nothing happens, or shows up. I set a custom position for them at the police station near fantastic plaza, and I added a husky from keep-companion to the list of things you get. idk if the husky might be breaking it or sumn. also in the console im getting a database query error, Table ‘main.tcd_starterpack’ doesn’t exist. I’m using qb-target, ps-inventory, and mysql-async. also I’m using a john wick model wick2 from extra npcs pack, which shows up and works good. as well, when using the command to get the starter pack, it says I already got one. I think it’s the database query error, idk what to do to fix it. It looks like it’s coming from ox_lib, which i have installed so starterpack will run, and it looks like it’s trying to use oxmysql, even though it’s set to mysql-async. Screenshot of the error below. Also the character to collect from has a green orb around him, just a debug thing you have turned on while working rn? I just pulled from main a bit ago to update it. Anyways, as i said, headed to bed now, is late lol