Jump to content

setSkyGradient function


kalitonchik

Recommended Posts

setSkyGradient

Many people tried to run this function, but due to lack of knowledge of scripts they have not got to run this function.

So please help [-o<

This function is needed for more impressions of the game mode.

This option changes the color of the sky on the system RGB :wink:

This means you can make a color of the sky which want :basicemoticon:

Whose information is provided on the http://development.mtasa.com/index.php? ... kyGradient enough to launch the setSkyGradient function of the server :x

Also, I still do not know where to fit setSkyGradient function in game mode, or in another place :?:

This effect of nature seen in some freeroam servers and :::eXo|Clanserver:::Zombie Mod||www.exo-clan.net

so i will do screenshots in the popular server with unusual game mode - Zombie Mode

Benefits :cyclopsani:

Beautiful weather is not typical for GTA SA

This feature makes the game more intense and nice

Help solve the problem

I think this feature is interested in many of the owners of servers

Thank you for your attention

Link to comment
can somebody dares to show a script that works 8)
                  -- server-side -- 
addEventHandler( "onResourceStart", getResourceRootElement(), 
    function( ) 
        setSkyGradient( 255, 0, 0, 0, 0, 0 ); -- Red to Black 
    end 
) 

Link to comment
and skygradient script need to be server.lua client.lua ore only client.lua :|

http://development.mtasa.com/index.php?title=Main_Page

1. Click on this link

2. Type setSkyGradient in search.

3. Press enter.

4. Look on the really-obvious-colorful-thing on the top of the page.

5. Use the wiki for now on to get questions like this answered.

Was that so hard? :roll:

And about the getResourceRootElement, change it to getResourceRootElement(getThisResource()). Because I think the theResource parameter is only optional in 1.0.

Link to comment

someone might say whot is wrong

I run freeroam

freeroam loaded

then run the SkyGradient script

but the script does not work because the line is not something as necessary

in this line addEventHandler( "onResourceStart", getResourceRootElement(),

50p so I do not scripter but I want to bring to the script worked

link that you gave me = useful for me

but I can work with meta.xml

but I do not know why the script is not working, so I have a question

how much should be lua scripts

Two scripts, one client second server? or one (server ore client)

I do not know what the problem and how to solve it

I really need this script

I am not able to solve the problem

and I use the alpha build dp2.1

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...