fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(extra-natives/five): LOAD_ROPE_DATA_FROM_PATH

Open packfile opened this issue 1 year ago • 3 comments

Adds a way to load a custom rope data file, useful for modifying/creating new ropes with additional textures, radii and colours as seen in https://i.imgur.com/1EpFIyP.png Additionally fixes the game crashing if calling ADD_ROPE with an invalid index (8 onwards with default rope data loaded)

packfile avatar Sep 16 '23 16:09 packfile

What would be reasons to add this? And why wouldn't we just load this prior to gameplay?

thorium-cfx avatar Nov 23 '23 11:11 thorium-cfx

What would be reasons to add this?

Currently there is not a trivial way (afaik) to replace the default ropedata file as the path is hardcoded, this adds a way to load one. A use case was brought up where someone wanted to make a rope that was thicker and used a custom texture

And why wouldn't we just load this prior to gameplay?

Did it this way to match a similar native that was implemented

packfile avatar Nov 23 '23 12:11 packfile

And why wouldn't we just load this prior to gameplay?

Resources can be started and stopped during gameplay as well.

blattersturm avatar Nov 23 '23 14:11 blattersturm