Jump to content

Loadstring - Unload doesn't work


Pe/\/duluM

Recommended Posts

Posted

I'm trying to create a training gamemode, like on TG.

It is working so far, every script of the map get's loaded and started successful.

But it fails at stopping it.

Though there is no function to stop everything inside the whole loaded script (xy = loadstring(FILE_TEXT)) and not everything get's unloaded on nil-ling the loadstring variable, I wanted to ask if there is some other way to achieve loading and saving the scripts?

Greetings, Pe/\/duluM

Posted

Mh... I already thought about doing one resource as a temporary script-cache,

but if that one would get started,

every player would get those scripts loaded...

Posted
Mh... I already thought about doing one resource as a temporary script-cache,

but if that one would get started,

every player would get those scripts loaded...

I sent you a pm

Posted

Put all objects into a table and then when you trigger an unload function, destroy them with destroyElement.

Posted
GTX, he don't know a way to unload the scripts what he has loaded with "loadstring"

Exactly that!

Thank you denny ^^

But still, I don't know how to unload it correctly :/

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...