TR/ResetWaterColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(ResetWaterColor Turkish Translate)
 
m (ResetWaterColor Turkish Translate)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function reset the water color of the GTA world to default.
Bu işlev GTA dünyasının su rengini varsayılan olarak ayarlar.


==Syntax==
==Syntax==
Line 11: Line 11:


===Returns===
===Returns===
Returns ''true'' if water color was reset correctly, ''false'' otherwise.
Su rengi doğru sıfırlandıysa ''true'', aksi takdirde ''false'' döndürür.
 


==Example==  
==Example==  
This example adds a command ''resetwatercolor'' with which a player can reset the water colour.
Bu örnek, bir oyuncunun su rengini sıfırlanabileceği bir ''resetwatercolor'' komutu ekler.
 
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function changeWaterBackToNormal ()
function changeWaterBackToNormal ()
Line 22: Line 24:
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==Bunlarada Bakabilirsiniz==
{{Client water functions}}
{{Client water functions}}

Revision as of 22:19, 1 March 2021

Bu işlev GTA dünyasının su rengini varsayılan olarak ayarlar.

Syntax

bool resetWaterColor ( )


OOP Syntax Help! I don't understand this!

Method: Water.resetColor(...)


Returns

Su rengi doğru sıfırlandıysa true, aksi takdirde false döndürür.


Example

Bu örnek, bir oyuncunun su rengini sıfırlanabileceği bir resetwatercolor komutu ekler.

function changeWaterBackToNormal ()
    resetWaterColor ()
end
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )

Bunlarada Bakabilirsiniz

Shared