getPlayerAnnounceValue | Multi Theft Auto: Wiki Skip to content

getPlayerAnnounceValue

Client-side
Server-side
Shared

Pair: setPlayerAnnounceValue

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 retrieves a players ASE announce value under a certain key.

Syntax

getPlayerAnnounceValue ( )

Code Examples

server

This example adds a command named "getscore" which outputs a players "score" value to his chatbox.

function getScore ( playerSource, cmdName )
local scoreValue = getPlayerAnnounceValue ( playerSource, "score" )
if ( scoreValue ) then
outputChatBox ( "Your score: "..scoreValue, playerSource )
end
end
addCommandHandler ( "getscore", getScore )

See Also