fivem
fivem copied to clipboard
feat(extra-natives/five): LOAD_ROPE_DATA_FROM_PATH
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)
What would be reasons to add this? And why wouldn't we just load this prior to gameplay?
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
And why wouldn't we just load this prior to gameplay?
Resources can be started and stopped during gameplay as well.