Jump to content

Event when a resources loads


Recommended Posts

Posted

When I do /refresh I get on the console the new resource that it's loaded, but is there an event for it?

onResourceStart and onResourcePreStart doesn't get called..

Posted

Can you explain better? I don't understand what you want. ( Only what I get is that you want a event for something ).

Posted
There's no event for when a new resource is loaded.

There is no way to know if a new resource has loaded?

Can you explain better? I don't understand what you want. ( Only what I get is that you want a event for something ).

I was looking for an event that get's called when a resource loads using /refresh or /refreshall.

Posted

Yes! That what I did, get a table with running resources when server starts, and when I execute the command, I compare the old table with the new table containing new resources, if the resource isn't on the old table, it's becouse is new, and I add it to another table that contains the new resources.

That's all, resolved, thanks.

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...