Jump to content
Halfaye

Prevent multiple instances of mod

Recommended Posts

Hey,

whenever I go off-duty and on-duty again LSPDFR loads a second instance of my mod. How can I prevent that or unload the first instance ?

~Halfaye

Share this post


Link to post
Share on other sites

I believe opening the RAGE console with F4 and typing one of the following:

UnloadAllPlugins

UnloadPlugin LSPDFR.dll

followed by:

ReloadAllPlugins

OR

LoadPlugins LSPDFR.dll

Share this post


Link to post
Share on other sites
52 minutes ago, Harper said:

I believe opening the RAGE console with F4 and typing one of the following:

UnloadAllPlugins

UnloadPlugin LSPDFR.dll

followed by:

ReloadAllPlugins

OR

LoadPlugins LSPDFR.dll

I don't want to do it manually. I want to implement a check or something in my mod but I don't know how.

Edited by Halfaye

Share this post


Link to post
Share on other sites
12 hours ago, Stealth22 said:

Use the OnDutyStateChanged event handler (when onDuty = false) to clean up your code when the player goes off duty.

Ok I understand that now but what do I have to do to actually stop the plugin from running. 

Share this post


Link to post
Share on other sites

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

×