SetBrowserVolume: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ This function sets either a specific browser's volume, or the overall volume for browsers. ==Syntax== <syntaxhighlight lang="lua"> bool set...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
{{Client function}}
{{Client function}}
__NOTOC__
{{New feature/item|3.0150|1.5||
This function sets either a specific [[Element/Browser|browser]]'s volume, or the overall volume for browsers.
This function sets either a specific [[Element/Browser|browser]]'s volume, or the overall volume for browsers.
}}


==Syntax==
==Syntax==
Line 7: Line 9:
bool setBrowserVolume ( [browser webBrowser], float volume )
bool setBrowserVolume ( [browser webBrowser], float volume )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Element/Browser|browser]]:setVolume||setBrowserVolume}}


===Required Arguments===
===Required Arguments===

Revision as of 19:24, 7 February 2015

This function sets either a specific browser's volume, or the overall volume for browsers.

Syntax

bool setBrowserVolume ( [browser webBrowser], float volume )

OOP Syntax Help! I don't understand this!

Method: browser:setVolume(...)
Counterpart: setBrowserVolume


Required Arguments

  • volume: A floating point number representing the desired volume level. Range is from 0.0 to 1.0

Optional Arguments

  • webBrowser: A browser element

Example

--todo

See Also