[Bug] CreateColshapePolygon not working as intended js runtime #300
trhi2409
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 2 comments 1 reply
|
Thanks, we are looking into this. |
1 reply
|
A fix for this bug has been implemented and is available in August 11 Patch. Please try again and let us know if the issue persists. Thanks for your help! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
CREATE_COLSHAPE_POLYGON is unusable from the JS runtime: passing the points as a plain array throws "arrays should be
vectors (wrong number of values)". It only works if the array is msgpack_pack'd first, which is undocumented.
Issue type
Both / Unsure
Repro rate
Always
Server build version
FXServer-early-access b98 win32
OS
No response
CPU
No response
GPU
No response
RAM
No response
Storage type
None
Connection type
None
ISP and bandwidth
No response
DxDiag
No response
Network graph
No response
Platform
None
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
None
Hosting provider
None
Machine type
None
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
Expected Behavior
The native accepts the array from JS and returns a valid colshape handle
Actual Behavior
Error: Script error in Native CreateColshapePolygon: arrays should be vectors (wrong number of values)
Evidence
No response
Additional Context
Running msgpack_pack on the array before passing it into the native and providing the length seems to fix the issue and create the colshape as intended, for example:
All reactions