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

_G.Adonis doesn't work #1625

Open
terlexory opened this issue Oct 15, 2024 · 8 comments
Open

_G.Adonis doesn't work #1625

terlexory opened this issue Oct 15, 2024 · 8 comments
Labels
🐛 bug Bugs or broken features 🖇️ loader The Adonis Loader and loader settings

Comments

@terlexory
Copy link

Version channel

Stable (Default)

Loader version

260

What part of Adonis is this related to?

Loader/Settings

What happened?

When i try to use the _G.Adonis API, it outputs a nil table, even tho i have set the G_API setting to true, i've tried debugging it but nothing seems to work, i'd like someone to help me out here.

Steps to reproduce

Just try to use the _G.Adonis table in any way, it wont work.

Device

Windows

Relevant log output

20:39:25.209  nil  -  Server - Game:32

local Adonis = _G.Adonis
print(Adonis) -- line 32 here
@terlexory terlexory added the 🐛 bug Bugs or broken features label Oct 15, 2024
@github-actions github-actions bot added the 🖇️ loader The Adonis Loader and loader settings label Oct 15, 2024
@Expertcoderz
Copy link
Contributor

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.

while not _G.Adonis do task.wait() end

@terlexory
Copy link
Author

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.

while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil

but it just infinitely yields.

@ccuser44
Copy link
Contributor

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.

while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil

but it just infinitely yields.

Do you have any Adonis plugins?

@terlexory
Copy link
Author

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.
while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil
but it just infinitely yields.

Do you have any Adonis plugins?

I do, but they are pretty basic. I dont think they would matter.

@ccuser44
Copy link
Contributor

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.
while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil
but it just infinitely yields.

Do you have any Adonis plugins?

I do, but they are pretty basic. I dont think they would matter.

Tell the nanes of all plugins you use in a list

@terlexory
Copy link
Author

Server-AddEXP
Server-Damage
Server-Heal
Server-Notification
Server-SetEXP
Server-SetLevel

@ccuser44
Copy link
Contributor

Try rawget(_G, "Adonis")

@ccuser44
Copy link
Contributor

ccuser44 commented Nov 9, 2024

Are you using this from the command bar? If so it doesn't work from the command bar because it has a different security context than regular Roblox scripts and thus runs in a different VM. Either use a regular script or use the Adonis debug invoke API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Bugs or broken features 🖇️ loader The Adonis Loader and loader settings
Projects
None yet
Development

No branches or pull requests

3 participants