itHyperoX Posted July 30, 2017 Share Posted July 30, 2017 (edited) is there any way to make a script like a default "/refresh" command with listing out what is the new resource which is loaded or failed? like this: addCommandHandler("refreshres",function(player) if tonumber(getElementData(player, "admin")) >= 5 then refreshResources(true) outputChatBox("Loaded new resource(s):",player) outputChatBox(newResources,player) end end) Edited July 30, 2017 by TheMOG Link to comment
MisterQuestions Posted July 30, 2017 Share Posted July 30, 2017 Save resources count with 'getResources()', refresh them and then with another variable get resources again, since its a table just get its lenght and calculate difference 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