Jump to content

refreshResources -> refreshResource


Mdbelen

Recommended Posts

Hi, i just saw, that there should be a refreshResources function in MTA 1.1. I guess this is supposed to refresh all resources on the server. But IMO it would be nice if you could refresh single resources, too. You could change the command to refreshResource( [theResource] ) and if theResource is nil it refreshes all. Would be useful if you change some settings of a resource (e.g. ghostmode false->true) you could refresh it without causing the lag caused by refreshing all resources at once (which is incredible high).

Link to comment

I'd like to see this added, our server has over 1000 maps/resources atm. When we /refresh to add new maps, it sometimes gives some small network trouble, sometimes more.

Don't know if it's possible to implement it that way, I hope so.

Link to comment
And what if the resource is not running? It needs to achieve the same effect as "refreshall". I don't think that this is done with a simple start of the resource.

No need to refresh a resource when isn't running, because when you start it, it gets refreshed -.-

Link to comment
  • Discord Moderators

I think what refreshResources does is loading/unloading resources which are added/removed or changed. It doesn't affect running resources as refreshall does

Sounds to me like you simply need to restart the resource? Based on your example you edit something in a script, and want it refreshed

Link to comment
  • Recently Browsing   0 members

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