GetPlayerNametagText

From Multi Theft Auto: Wiki
Revision as of 06:20, 11 April 2007 by Ransom (talk | contribs)
Jump to navigation Jump to search

This fake function is for use with blah & blah and does blahblahblabhalbhl

Syntax

string getPlayerNametagText ( player thePlayer )

Required Arguments

  • argumentName: description

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • argumentName2: description
  • argumentName3: description

Returns

Returns true if blah, false otherwise.

Example

This example does... This will announce whenever a player enters a car

addEventHandler ( "onVehicleEnter", root, "VehicleEnter" )
function VehicleEnter ( player, seat, jacked )
playersname = getPlayerNametagText ( player )
--Store the name of the person who entered the car
outputChatBox ( playersname.." entered a car!" )
--output the name tag of the person who entered the car
end

See Also

Template:FunctionArea functions -- leave this unless you complete the function