feat, fix: added the disable afk option, fixes the hudCompenents loop#148
Closed
LenixDev wants to merge 4 commits intoQbox-project:mainfrom
Closed
feat, fix: added the disable afk option, fixes the hudCompenents loop#148LenixDev wants to merge 4 commits intoQbox-project:mainfrom
LenixDev wants to merge 4 commits intoQbox-project:mainfrom
Conversation
…abled - Added "disabled" flag to config.json to enable/disable AFK functionality - Updated server.lua to return early if AFK feature is disabled in config - Prevents further execution when disabled to disable AFK checks and tracking
- Introduce config option to disable GTA radio station display in vehicles - Cache the function to set radio station to optimize loop execution - Override radio station function when the disable option is enabled - Call setRadioStation and hide HUD components every frame in the main loop - Disable specified controls and optionally display ammo in each frame - Refactor client.lua for better readability and performance improvements
- Add configuration option to disable melee attacks with weapons - Implement a continuous check to disable melee attack controls if player holds a weapon that is not melee or unarmed - Prevent weapon melee attacks by disabling related control actions - Ensure this feature runs on a dedicated thread for responsiveness
- Updated version in fxmanifest.lua from 0.2.0 to 0.3.0
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
fix(qbx_afk): add disabled option to config and skip execution if dis…
feat(hud): add radio station disable option and refactor HUD handling
feat(ignore): disable melee attacks with weapons when configured
chore(fxmanifest): bump version to 0.3.0
Checklist