multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
151 stars 151 forks source link

Maps Script Loader #550

Open Proxy-99 opened 1 week ago

Proxy-99 commented 1 week ago

Adding a new resource Map Script loader will be useful for multi game modes scripting and loading client scritps from a map without rely on loading a resource and start it

Fernando-A-Rocha commented 6 days ago

I don't think I understand. Example?

MegadreamsBE commented 6 days ago

I don't think I understand. Example?

Multi-gamemodes receive map files and scripts from the server, they then load it in with loadstring. They keep track of elements and other changes to revert once the map unloads. As it's not related to any gamemode, I feel it's out of scope for the default resources. Not to mention that it's very easy for it to go out of date and become insecure.

Fernando-A-Rocha commented 6 days ago

Nice, it makes map scripts more tied to the maps themselves.