GetPlayerMapOpacity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0159|1.5.8|20945|This function allows to get the opacity of the radar map (F11).}} ==Syntax== <syntaxhighlight lang="lua">...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{New feature/item|3.0159|1.5.8|20945|This function allows to get the opacity of the radar map (F11).}}
{{Added feature/item|3.0159|1.5.9|1.5.8|20945|This function allows to get the opacity of the radar map (F11).}}


==Syntax==
==Syntax==
Line 10: Line 10:


===Returns===
===Returns===
Returns an [[integer]] value from 0 to 255, where 0 is fully transparent and 255 is fully opaque.
Returns an [[integer]] with a value from 0 to 255, where 0 is fully transparent and 255 is fully opaque.


==Example==
==Example==
{{Example}}
{{Needs Example}}


==Requirements==
==Requirements==

Revision as of 16:05, 20 September 2021

20945

Syntax

int getPlayerMapOpacity ( )

OOP Syntax Help! I don't understand this!

Method: Player.getMapOpacity(...)


Returns

Returns an integer with a value from 0 to 255, where 0 is fully transparent and 255 is fully opaque.

Example

Accessories-text-editor.png Script Example Missing Function GetPlayerMapOpacity needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20945

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20945" />

See Also