Skip to content

Fix: handle null value in JS callback from package#85

Merged
FjamZoo merged 1 commit intoCommunityOx:mainfrom
Maximus7474:fix/js-callbacks
Feb 11, 2026
Merged

Fix: handle null value in JS callback from package#85
FjamZoo merged 1 commit intoCommunityOx:mainfrom
Maximus7474:fix/js-callbacks

Conversation

@Maximus7474
Copy link
Member

Issue that is encountered is that in the situations where a callback returns a null value it fails within the npm package of ox_lib.
This isn't the case with the lua callbacks because of the difference in serialization of the lua and js SCRT in fivem if I'm not mistaken.

-> Issue is that if callaback returns a null value it errors and fails
@Maximus7474
Copy link
Member Author

This addresses the issue I encountered within the ox_mdt rewrite where the oxmysql prepare queries return null.
Maximus7474/ox_mdt@2417f02

@FjamZoo FjamZoo merged commit e66b680 into CommunityOx:main Feb 11, 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.

2 participants