Feche1320 Posted March 7, 2012 Share Posted March 7, 2012 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.. Link to comment
drk Posted March 7, 2012 Share Posted March 7, 2012 Can you explain better? I don't understand what you want. ( Only what I get is that you want a event for something ). Link to comment
Castillo Posted March 7, 2012 Share Posted March 7, 2012 There's no event for when a new resource is loaded. Link to comment
Feche1320 Posted March 7, 2012 Author Share Posted March 7, 2012 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. Link to comment
Castillo Posted March 7, 2012 Share Posted March 7, 2012 Maybe you can do a function to check when a new resource is loaded, e.g: comparing a table with current resources. Link to comment
Feche1320 Posted March 7, 2012 Author Share Posted March 7, 2012 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now