mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add the ability to completely remove or disable unused functions.

Open Daniheee opened this issue 4 months ago • 6 comments

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

A new line could be added to the 'mtaserver.conf' file, something like:

<disabled_functions>setElementInterior, createVehicle<disabled_functions>

Here, we could list functions that our gamemode doesn't use at all, allowing us to completely remove them from both the server and client side.

Describe alternatives you've considered

You can always do:

setElementInterior = nil

But I believe that's not a permanent solution, and it might be possible to ""bypass"" it.

Additional context

Removing unnecessary functions might free up a very small amount of memory as well, though I'm not entirely sure about this, please feel free to correct me on this one.

Security Policy

  • [X] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Daniheee avatar Oct 07 '24 05:10 Daniheee