Feche1320 Posted March 7, 2012 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.. www.host-ar.com.ar
drk Posted March 7, 2012 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 ). EPT Team Server Development: 0% Learning C++ | C++ is amazing
Castillo Posted March 7, 2012 Posted March 7, 2012 There's no event for when a new resource is loaded. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Feche1320 Posted March 7, 2012 Author 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. www.host-ar.com.ar
Castillo Posted March 7, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Feche1320 Posted March 7, 2012 Author 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. www.host-ar.com.ar
Castillo Posted March 7, 2012 Posted March 7, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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