overextended / cfxlua-vscode

https://marketplace.visualstudio.com/items?itemName=overextended.cfxlua-vscode
MIT License
51 stars 23 forks source link

Ability to switch native db for RedM support #18

Closed Bobertsawesome closed 1 year ago

Bobertsawesome commented 1 year ago

I intended on forking and doing this myself, but I have no idea how this script gets the fivem native DB after looking through the code. Over my head.

But in any case, here is the current RedM DB: https://raw.githubusercontent.com/alloc8or/rdr3-nativedb-data/master/natives.json

TasoOneAsia commented 1 year ago

See this, for how type definitions are sourced.

thelindat commented 1 year ago

Planned, just been lazy.

I have no idea how this script gets the fivem native DB after looking through the code.

There's no workflow setup so right now I just generate manually using https://github.com/thelindat/JetbrainIDE-CFX.RE, drop into my local repository, and publish to vscode from there.

Bobertsawesome commented 1 year ago

Ahh ok that makes sense then. I was seriously scratching my head lol. Saw nothing of a reference. I forked a popular fivem extension to be used with redm natives, just needed some new pointers.  It automatically fetches the db each startup. Here’s that implementation https://github.com/UnderworldServers/redm-vscode

thelindat commented 1 year ago

Being a bit lazy with it, but if you edit your workspace settings.json with "cfxlua.game": "rdr3" it'll unload FiveM natives and load RedM's.

Bobertsawesome commented 1 year ago

Thanks for the info. I’ll try it out soon. On Dec 2, 2022, at 1:20 AM, Linden @.***> wrote: Being a bit lazy with it, but if you edit your workspace settings.json with "cfxlua.game": "rdr3" it'll unload FiveM natives and load RedM's.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>