From Multi Theft Auto: Wiki
string getPlayerSerial ( player thePlayer )
- thePlayer: A player object referencing the specified player.
Returns the serial as a string if it was found, false otherwise.
The format of the serial has been changed.
Click to collapse [-]Server
This example creates a command with which player can check their own serial.
function checkMySerial( thePlayer, command ) local theSerial = getPlayerSerial( thePlayer ) if theSerial then outputChatBox( "Your serial is: " .. theSerial, thePlayer ) else outputChatBox( "Sorry, you have no serial. =(", thePlayer ) end end addCommandHandler( "serial", checkMySerial )