Skip to content

feat: Added some really cool feature to the configs and add blips module#73

Closed
lehnihx wants to merge 5 commits into
Qbox-project:mainfrom
lehnihx:main
Closed

feat: Added some really cool feature to the configs and add blips module#73
lehnihx wants to merge 5 commits into
Qbox-project:mainfrom
lehnihx:main

Conversation

@lehnihx

@lehnihx lehnihx commented Jan 9, 2026

Copy link
Copy Markdown

Description

fix(client): prevent adding nil items in radial menu conversion
feat(vehicle): add quick give keys option and flip vehicle menu item
eat(blips): add toggleable blip categories with persistence
docs(blips): add documentation for blip usage and API

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

- Skip adding converted items if conversion returns nil
- Return early if converted items list is empty
- Ensure only valid converted items are added to radial menu
- Improve stability by avoiding nil entries in menu setup loop
- Add "quick give keys" as a vehicle menu item configurable in client settings
- Introduce conditional flip vehicle option in the radial menu when vehicle is flipped
- Support additional vehicle items and windows configuration in the menu setup
- Update English locale with "Quick Give Keys" label for new menu item
- Ensure vehicle extras menu item appears when enabled in config
… items

- Introduce flags to track player proximity to vehicles and players, and vehicle flipped state
- Update menu setup to conditionally show items based on player state (onVehicleOnly, outSideVehicleOnly, nearByVehicleOnly, nearByPlayerOnly)
- Add continuous background thread to monitor player and vehicle statuses and refresh radial menu accordingly
- Extend config entries with new condition fields to control menu item visibility
- Refactor vehicle menu setup to include vehicle flip option only when applicable
- Implement toggleable blip categories with show/hide functionality
- Save and load blip visibility preferences in player metadata
- Register toggleable blips and apply saved visibility on player load
- Add commands and events to toggle specific blip categories like shops
- Update locale strings for blip shown/hidden notifications
- Bump fxmanifest version to 0.3.0 to reflect new features
- Added blip usage section to README including toggleBlip and registerToggleableBlip functions
- Documented parameters and example usage for registerToggleableBlip

feat(blips): implement toggleable blips with persistence support

- Added loadBlipPreferences function to load blip visibility from player metadata
- Set blip alpha visibility based on saved preferences on player load
- Implemented toggleBlipsForCategory to show/hide all blips in a category
- Created registerToggleableBlip to register individual blip handles under categories
- Integrated blip toggling with metadata persistence and visibility updates
- Exposed toggleBlip and registerToggleableBlip functions as exports for external use
Comment thread config/client.lua
id = 'quickgivevehkeys',
icon = 'key',
label = locale('options.quickgivekeys'),
serverEvent = 'qbx_vehiclekeys:server:quickgivekeys',

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lehnihx lehnihx closed this by deleting the head repository Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant