Jump to content

Recommended Posts

Hey I just want to check if a mod is enabled on load.

I read on other much older forum posts that its

local isXModEnabled = GLOBAL.KnownModIndex:IsModEnabled("workshop-whateverthenumberis")

However when I run this line with a mod number that I know is enabled, all I get is nil.

Am I perhaps misusing this function?

(I'm calling it in modmain.lua)

Edited by Lyraedan

Turns out I was using this incorrectly, this is infact still the way to check a mod is enabled. HOWEVER if something went wrong say you forgot "workshop-" at the start it will just return "nil" instead of false.

Edited by Lyraedan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...