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

Error loading script #21

Closed
BBDMAC opened this issue Nov 21, 2021 · 4 comments
Closed

Error loading script #21

BBDMAC opened this issue Nov 21, 2021 · 4 comments

Comments

@BBDMAC
Copy link

BBDMAC commented Nov 21, 2021

Hey there I am receiving an error when loading spooner script - I do have UIPROMPT installed as directed and I am being thrown the following error with installed as seen also.

Any help would be amazing thank you!
uiprompt

@kibook
Copy link
Owner

kibook commented Nov 21, 2021

Is this for RedM or FiveM?

Did you modify anything in fxmanifest.lua aside from setting the gameName variable?

Are there any errors in the server console (not the in-game one) when uiprompt starts?

@BBDMAC
Copy link
Author

BBDMAC commented Nov 21, 2021

no errors in console

fx

REDM

@kibook
Copy link
Owner

kibook commented Nov 21, 2021

You need to set the gameName variable, not the game metadata directly:

-- Set this to one of the following:
-- FiveM: "gta5"
-- RedM: "rdr3"
local gameName = ""

Inside the quotes, add either gta5 (for FiveM) or rdr3 (for RedM):

local gameName = "rdr3"

The gameName variable is used in a few places inside fxmanifest.lua to load different things for FiveM vs. RedM. Leaving it unset or removing it will cause issues like this. Unfortunately, this is the best method I've been able to find so far to have a single resource that loads different scripts for both games. There doesn't appear to be any way to automatically detect which game a resource is being used on within fxmanifest.lua.

@kibook kibook closed this as completed Jun 20, 2022
@nickwayman1068
Copy link

Hello I have spooner installed and It will not open even when I have the dependency and spooner both started on the console any reason this might not be working?

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