getPlayerMapOpacity | Multi Theft Auto: Wiki Skip to content

getPlayerMapOpacity

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows to get the opacity of the player map (F11).

Syntax

getPlayerMapOpacity ( )

Code Examples

client

This example implements a command that tells you what your current map opacity is.

function showMapOpacity()
-- We get the map opacity value
local mapOpacity = getPlayerMapOpacity()
-- We tell what the map opacity is to the player
outputChatBox("Your map's opacity is at "..mapOpacity, 0, 255, 0)
end
addCommandHandler("mapopacity", showMapOpacity)

See Also