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

LUA-Error #23

Open
Megamezzomixer opened this issue Sep 17, 2019 · 3 comments
Open

LUA-Error #23

Megamezzomixer opened this issue Sep 17, 2019 · 3 comments

Comments

@Megamezzomixer
Copy link

Megamezzomixer commented Sep 17, 2019

I've recently discovered a LUA-Error coming from SF.

[StormFox - Environment mod] lua/stormfox/lib/sh_permissions.lua:79: attempt to call method 'IsListenServerHost' (a nil value)

1. SettingsEdit - lua/stormfox/lib/sh_permissions.lua:79

2. unknown - lua/stormfox/sh_options.lua:4

3. unknown - lua/includes/modules/concommand.lua:54
@SupinePandora43
Copy link

error is caused by calling function what doesn't exists.
usually they throwed because method called on wrong side (IsListenServerHost is Client-side, cause error on Server-side), or old gmod version, wrong method name

@Megamezzomixer
Copy link
Author

Yes, I know, but this bug is in the current workshop build and may need to be fixed.

@Kefta
Copy link

Kefta commented Sep 17, 2019

It is indeed caused by IsListenServerHost being used clientside. I believe the listen server host will always have UserID 0 so you can use that as a shared check instead. Otherwise, you'll have to network the player's host state on startup.

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