Hello,
[size=150]This is a short tutorial on how to change the color of sky and water in your maps.[/size]
Things u need:
- Notepad++, u can download it here: [Only admins are allowed to see this link]
- MTA San Andreas (obviusly)
1.- After download and install Notepad++, go to your map settings: C:\...\MTA San Andreas\server\mods\deathmatch\resources\NameOfYourMap, open meta.xml and put this line: <script src="client.lua" type="client" />
u will get this meta:
and Save it.
2.- Create a new notepad++ file and put this:
and save as client.lua <-- lua file.
3.- Open MTA, and press F5 or test, u will can see the colours.
setSkyGradient: Color of Sky
setWaterColor: Color of Water
U can get code here: [Only admins are allowed to see this link]
[size=150]This is a short tutorial on how to change the color of sky and water in your maps.[/size]
Things u need:
- Notepad++, u can download it here: [Only admins are allowed to see this link]
- MTA San Andreas (obviusly)
1.- After download and install Notepad++, go to your map settings: C:\...\MTA San Andreas\server\mods\deathmatch\resources\NameOfYourMap, open meta.xml and put this line: <script src="client.lua" type="client" />
u will get this meta:
<meta>
<script src="client.lua" type="client" />
<info gamemodes="race" type="map" version="1.0.0" />
<map src="NameOfYourMap.map" dimension="0" />
<settings>
<setting name="#minplayers" value="[ 0 ]" />
<setting name="#maxplayers" value="[ 128 ]" />
<setting name="#gravity" value="[ 0.008000 ]" />
<setting name="#weather" value="[ 0 ]" />
<setting name="#time" value="12:0" />
<setting name="#locked_time" value="[ false ]" />
<setting name="#waveheight" value="[ 0 ]" />
<setting name="#gamespeed" value="[ 1 ]" />
</settings>
</meta>
and Save it.
2.- Create a new notepad++ file and put this:
function startclient ()
setSkyGradient( 0 , 0 , 0 , 0 , 0 , 0 )
setWaterColor( 0, 0 , 255 )
end
addEventHandler( "onClientResourceStart", resourceRoot, startclient )
and save as client.lua <-- lua file.
3.- Open MTA, and press F5 or test, u will can see the colours.
setSkyGradient: Color of Sky
setWaterColor: Color of Water
U can get code here: [Only admins are allowed to see this link]