Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FiveM support #133

Open
fivaz opened this issue Jul 30, 2022 · 3 comments
Open

FiveM support #133

fivaz opened this issue Jul 30, 2022 · 3 comments

Comments

@fivaz
Copy link

fivaz commented Jul 30, 2022

Many people use Lua to code FiveM mods, it would be cool to have some support for FiveM global functions in Lua

@Xseba360
Copy link

Xseba360 commented Sep 4, 2022

@fivaz
Check these definitions out:
https://github.com/Xseba360/fivem-lua-docs

Feel free to use them in your project, let me know if you do.
Side note:
If you use the JOAAT Hash literal (backticks):

local hash = `WEAPON_PISTOL`

the whole thing just breaks and stops processing code.

@Xseba360
Copy link

Xseba360 commented Oct 8, 2022

I have added support for the hash literal in a forked repository:

https://github.com/Xseba360/IntelliJ-Luanalysis/tree/fivem
(build artifacts here)

I don't know if there's a better way to implement this for now, but it's all I was able to figure out with my close-to-zero Java/Kotlin knowledge.

Unless @Benjamin-Dobell plans to implement game/application specific syntaxes behind a plugin setting, it will have to stay in a fork.

For example, issue #109 has been left pretty much unanswered and AFAIK issue #91 has been pretty much untouched since April, so I don't predict any changes regarding this matter 😥.

I checked EmmyLua issues and it seems no one has any plans for implementing FiveM-specific backtick syntax there:

@Damen57
Copy link

Damen57 commented Nov 25, 2023

I have added support for the hash literal in a forked repository:

https://github.com/Xseba360/IntelliJ-Luanalysis/tree/fivem (build artifacts here)

I don't know if there's a better way to implement this for now, but it's all I was able to figure out with my close-to-zero Java/Kotlin knowledge.

Unless @Benjamin-Dobell plans to implement game/application specific syntaxes behind a plugin setting, it will have to stay in a fork.

For example, issue #109 has been left pretty much unanswered and AFAIK issue #91 has been pretty much untouched since April, so I don't predict any changes regarding this matter 😥.

I checked EmmyLua issues and it seems no one has any plans for implementing FiveM-specific backtick syntax there:

i had issues with phpstorm crashing during indexing with this unfortunately :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants