citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.48k stars 2.06k forks source link

'Import objects from Rockstar' feature #873

Open blattersturm opened 3 years ago

blattersturm commented 3 years ago

A little silly idea, but imagine if the world editor had an option to let you paste in a Rockstar job URL or ID and it'd (try to) fetch the JSON file underlying the job and place all objects (and later on metadata like enemies, pickups, spawns, or checkpoints?) in your current map - a little cute way to get a lot of examples to remix as well.

I might be able to pick this idea up myself if nobody else will.

jaymo1011 commented 3 years ago

Those JSON files are not fun to parse. Perhaps there could be a community effort to document how the freemode mission controller parses the JSON? (Or if someone already has this documented, ask them to share?)

logan-mcgee commented 3 years ago

Those JSON files are not fun to parse. Perhaps there could be a community effort to document how the freemode mission controller parses the JSON? (Or if someone already has this documented, ask them to share?)

agreed, would definitely be helpful for not only this but for other cases where UGC content can be parsed and used for some interesting gamemodes and such

blattersturm commented 3 years ago

Your link seems to lead to a 404. However, there's already various implementations of this, as well as the decompiled scripts as reference.