π Changelog β BPT ID Card System v2.0.1 #1274
Merged
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.
π New Features
Full ESX + ox_inventory compatibility Integrated support for both inventory systems, allowing ID cards, driver licenses, and weapon licenses to be usable regardless of inventory backend.
Dynamic Document Rendering ID cards, driver licenses, and weapon licenses are now fully populated with real player data:
car,bike,truck,weapon)Modern NUI Interface
style.cssmale.png/female.png)idcard,license,firearm)π οΈ Improvements
NUI Focus Management Proper
SetNuiFocushandling ensures the player regains control after closing any document, avoiding frozen cursor or input blocking.Robust License Handling
Event & Callback Optimization
bpt_idcard:openandcloseNUIeventsCode Refactor & Optimization
init.js) rewritten for full compatibility with updated server data formatπ Bug Fixes
ox_inventoryβοΈ Developer Notes
server.luausingregisterUsableCard(itemName, clientEvent)SendNUIMessage({action:"open"/"close", array:data, type:type})SetNuiFocus(false, false)to restore player controlFixes #[issue_no]
All Submissions:
Please describe the changes this PR makes and why it should be merged:
Discord username (if different from GitHub):