MTA map editor

03/13/2014 11:13 dj19988#1
How can i disable clouds in map editor?
How to login as admin in map editor?
please someone answer me:D
03/15/2014 14:29 Merkur Magnus#2
1. [Only registered and activated users can see links. Click Here To Register...]

2.[Only registered and activated users can see links. Click Here To Register...]
03/16/2014 09:01 dj19988#3
i don't know how to use this... xD please teach me?
function disableClouds ()
setCloudsEnabled ( false ) -- Hide the clouds for all players when the resource starts
end
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), disableClouds )
03/17/2014 12:40 Merkur Magnus#4
Create a .lua file and a meta.xml and you put:

-- lua file:

HTML Code:
addEventHandler ( "onClientResourceStart", resourceRoot,
    function ( )
        setCloudsEnabled ( false )
    end
)

-- meta.xml:

HTML Code:
<meta>
    <script src="script.lua" type="client" />
</meta>
03/20/2014 09:16 Legendary#5
Quote:
Originally Posted by Hannibal​ View Post
Create a .lua file and a meta.xml and you put:

-- lua file:

HTML Code:
addEventHandler ( "onClientResourceStart", resourceRoot,
    function ( )
        setCloudsEnabled ( false )
    end
)

-- meta.xml:

HTML Code:
<meta>
    <script src="script.lua" type="client" />
</meta>
+

a separate resource and then you can control the Resource inGame (ACL rights must be present), or by entering the commands in the console ( "start RESOURCENAME" )