Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssIn-Game map editor (offedit)

Category:misc
Author(s):offroader23
Downloads:12654
Rate:You need to be logged in to vote
Rating:3.8 (119 Votes)
Description:
Script inspired by Mabakos SA-MP 0.2 medit script
Made by OffRoader23

Changelog
1.0.1 - Fixed some console warnings/errors
1.1 - Fixed for Windows servers
1.2 - Added /mclone /mstack, changed code to make it run a bit more smoothly, updated objects limit to 500 (this can be changed through the offedit.lua)
1.3 - Added /minfo to get the map info of the item your currently editing
1.4 - Added /mloop and /guestb

2.0 - a few new commands that include /mbreak and /mappers, please refer to git or sourcecode for details

2.0.0 - various changes listed in https://github.com/JohnFlowerful/offedit/commits/master and LOD support, so you can see buildings and mapped stuff from afar (no more crashing planes into builds because they rendered in late!)


In-Game Map Editor - Commands
/mcreate <obj model number> - Creates object with specified model number
/msave - Saves object into script, and gives you that objects script ID
/mdestroy - Destroy currently selected object
/msel <ID> - Select object saved into script by objects script ID
/mclear - Clear all objects made with the map editor
/ox <value> - Move object on X axis
/oy <value> - Move object on Y axis
/oz <value> - Move object on Z axis
/rx <value> - Rotate object on X axis
/ry <value> - Rotate object on Y axis
/rz <value> - Rotate object on Z axis
/savemap <name> - Save all current items into script folder with specified name
/loadmap <name> - Load map from script folder with specified name
/saveobj <description> - Saves currently selected object to objects.txt with description and creator

New in 1.2

/mclone x y z rx ry rz - Clones currently selected object with the distance you specify (offsets not required)
/mstack num x y z rx ry rz - Clones currently selected object the specified ammount of times, with the distance away from the original

New in 1.3

/minfo to get the map info of the item your currently editing, give you model number, position, and rotation.

New in 1.4

/mloop pieces radius width rotaxis loops rotation - Makes a loop with currently selected piece. Example: /mloop 50 30 20 -y - If you use this with an object ID of 18450 (flat road) it makes a loop out of 50 pieces, the loops radius is 30, diameter 60, and from the first piece to the last there is a gap of 20 units, the object rotation axis for a 18450 is -y, if it is not set as that the loop will not be made right. This is a more advanced command, and takes a lot of trial and error to get correct.
/guestb name - Guest someone with a building pass. Gives them the ability to build, but not to loadmap, mclear, and savemap. To do that put their name in offedit.lua.

Example to make an object for those confused by the script.
/mcreate 5004 - create a flat piece of land
/oz 1 - move it on z axis by 1 unit
/rz 90 - rotate on z axis by 90 degrees
/msave - save object to table
/msel <ID> - select a previously saved object
/savemap <Name> - save every object in the table to a lua script in resources>offedit in your server

Please post errors/bugs/warnings in this topic.
http://forum.mtasa.com/viewtopic.php?f=91&t=22424
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
2.0.0 2021-03-23 13:53:54 Updated to latest version from git + touched up and added LOD support (staff courtesy) so you can see buildings and mapped stuff from afar Download
1.4.0 2008-04-06 04:21:19 Added /mloop and /guestb - Check readme for specific parameters Download
1.3.0 2008-03-30 19:42:59 Added /minfo to get object ID of current object. Download
1.2.1 2008-03-30 06:51:17 Edited /mstack to support 50 objects. Also tells you 'no' if you try to do more then 50. Download
1.2.0 2008-03-30 05:50:42 Updated script a bit more. Added /mclone and /mstack. Check readme for more info. Download
1.1.0 2008-03-29 07:48:22 Updated to work correctly for Windows Servers. Sorry about the confusion. Please read the Readme for more information. Download
1.0.1 2008-03-28 06:42:48 Updated the script, more error check to avoid warning/error spamming. Fixed /saveobj. Download
1.0.0 2008-03-27 05:04:25 First public release Download