This repository was archived by the owner on Jan 31, 2026. It is now read-only.
chore: introduce the possibility of eating tuna sandwich#1034
Merged
bitpredator merged 2 commits intomainfrom Mar 15, 2025
Merged
chore: introduce the possibility of eating tuna sandwich#1034bitpredator merged 2 commits intomainfrom
bitpredator merged 2 commits intomainfrom
Conversation
1. General Improvements - Code optimization to reduce MySQL load. - Improved ESX object handling using exports["es_extended"]:getSharedObject(). 2. Crafting Level System - Added Functions: - SetCraftingLevel(identifier, level): Sets a player's crafting level in the database. - GetCraftingLevel(identifier): Retrieves a player's crafting level. - GiveCraftingLevel(identifier, level): Adds crafting experience to the player. Changes: - Optimized MySQL queries to avoid locking the users table. - Improved identifier checking to prevent null errors. 3. Server Events - Logged Events: - bpt_crafting:setExperiance: Sets a player's crafting level. - bpt_crafting:giveExperiance: Adds crafting experience. - bpt_crafting:itemCrafted: Handles item assignment after crafting. - bpt_crafting:craft: Starts the crafting process. 4. Crafting Function Improvements - Improved ingredient handling: - More precise control over ingredients before starting crafting. - UseLimitSystem control to avoid inventory full issues. - Added control over permanent items: - Items designated as "permanent" are not removed from crafting. SuccessRate fix: - Crafting success is now correctly determined based on a random value between 0 and the recipe's SuccessRate. 5. Optimized ESX Callbacks - bpt_crafting:getXP: - Retrieves crafting level more efficiently. - bpt_crafting:getItemNames: - Optimized MySQL query to reduce response time.
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.
Fixes #[issue_no]
All Submissions:
Please describe the changes this PR makes and why it should be merged:
Discord username (if different from GitHub):