Closed skyrossm closed 1 year ago
Thanks for the quick review, I've updated the PR 👍
Yep the CFX JS library has parameters that it passes in instead of the pointers. It's something I noted but I think it would require a lot more refactoring to work properly.
Ints are also converted (maybe not needed?) to floats in JS with +0.0000001.
I think a separate PR improving the way types are handled would be the next step.
Description
Adds TypeScript codegen & native display support
Sample codegen
To ensure compatibility with existing FiveM code, strings in place of hashes get converted to numbers.
_ch
is the existing CFX JS function converting a string to a hash, however it should be simple to recreate this as needed.Other Changes
Screenshots