Home
Home
Register
Login

Resources
Forum






rssMap loader (map_loader)

Category:script
Author(s):IIYAMA12
Downloads:510
Rate:You need to be logged in to vote
Rating:4.2 (5 Votes)
Description:
This is a map loader, which can let specific players download a map of choice. Maps will be generated clientside and the resource is capable of loading extreme large maps. Loading the map will be done with a speed the pc can handle. The code execution time will be reduced to circa 10 ms. Which is the frame time of a player with 100 fps. So technically when you have 100 fps you still have 98/100 fps when this resource is loading a map. But this is based on running only this resource and based on predictions/knowledge. Which you can't trust...

Version 1.0.2 is uncompiled. (versions 1.0.1 and lower are not)

Exports:
<export function="loadMapForTarget" type="server"/>
<export function="unloadMapForTarget" type="server"/>
<export function="getPlayerDownloadProgress" type="server"/>
<export function="getPlayerMapStatus" type="server"/> (1.0.1 or higher)

Events(serverside):
"onPlayerLoadedMap"
"onPlayerUnloadedMap"
"onPlayerCancelMapDownload" (1.0.1 or higher)

Events(clientside):
"onClientPlayerLoadedMap"
"onClientPlayerUnloadedMap"

For more info, see meta.xml or the MTA forum:
http://forum.mtasa.com/viewtopic.php?f=108&t=92549

Element types that are supported:
Objects, peds, vehicles, markers and pickups

If there are any bugs, let me know.

And don't forget, this resource require some rights in order to read map files from other resources:
<right name="general.ModifyOtherObjects" access="true"></right>
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.2 2020-05-24 13:55:07 Uncompiled Download
1.0.1 2015-09-12 11:34:02 Adding export function getPlayerMapStatus and event "onPlayerCancelMapDownload". Download
1.0.0 2015-09-11 20:19:41 First public release Download