This repository was archived by the owner on Jan 31, 2026. It is now read-only.
Merged
Conversation
ParkBoats function: Handles parking of all boats not saved in the database, updating the stored field to true for those boats that were still out of the garage. Callback bpt_boat:buyBoat: Checks if the player has enough money to buy a boat and updates the database to mark the boat as purchased. If the price is 0 (bad model), it signals an exploit attempt. Event bpt_boat:takeOutVehicle: When a player wants to take a boat from the garage, the function updates the database to mark the boat as "out" of the garage (stored = false). Callback bpt_boat:storeVehicle: Handles the logic to park the boat in the garage, updating the database to mark the boat as "in garage" (stored = true). Callback bpt_boat:getGarage: Returns all boats saved in a player's garage, loading the data from the database. Callback bpt_boat:buyBoatLicense: Allows to buy a license for the boat, if the player has enough money. Considerations: Tables Check: Make sure that the database has the table owned_vehicles with the necessary columns like owner, plate, vehicle, type and stored. Licenses: The licensing system is managed via the esx_license:addLicense event. Make sure that the ESX licensing system is properly configured on your server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ParkBoats function: Handles parking of all boats not saved in the database, updating the stored field to true for those boats that were still out of the garage.
Callback bpt_boat:buyBoat: Checks if the player has enough money to buy a boat and updates the database to mark the boat as purchased. If the price is 0 (bad model), it signals an exploit attempt.
Event bpt_boat:takeOutVehicle: When a player wants to take a boat from the garage, the function updates the database to mark the boat as "out" of the garage (stored = false).
Callback bpt_boat:storeVehicle: Handles the logic to park the boat in the garage, updating the database to mark the boat as "in garage" (stored = true).
Callback bpt_boat:getGarage: Returns all boats saved in a player's garage, loading the data from the database.
Callback bpt_boat:buyBoatLicense: Allows to buy a license for the boat, if the player has enough money.
Tables Check: Make sure that the database has the table owned_vehicles with the necessary columns like owner, plate, vehicle, type and stored. Licenses: The licensing system is managed via the esx_license:addLicense event.
Make sure that the ESX licensing system is properly configured on your server.
Fixes #[issue_no]
All Submissions:
Please describe the changes this PR makes and why it should be merged:
Discord username (if different from GitHub):