addCommandHandler("punishments",show)
function ()
if ( getElementData ( localPlayer, "isPlayerLoggedin" ) ) then
local playerID = exports.server:getPlayerAccountID ( localPlayer )
guiGridListClear ( accountPunishGrid )
guiGridListClear ( serialPunishGrid )
guiSetText( punishlogLabel1, "Accountname: " .. exports.server:getPlayerAccountName ( localPlayer ) .. " / Nickname: "..getPlayerName( localPlayer ) )
guiSetText( punishlogLabel2, "Serial: "..getPlayerSerial() )
triggerServerEvent ( "retrievePlayerPunishments", localPlayer, playerID )
end
end