SetUnbanTime

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function sets a new unban time of a given ban using unix timestamp (seconds since Jan 01 1970).

Syntax

bool setUnbanTime( ban theBan, int theTime )


OOP Syntax Help! I don't understand this!

Method: ban:setUnbanTime(...)
Variable: .unbanTime
Counterpart: getUnbanTime


Required Arguments

  • theBan: The ban of which to change the unban time of
  • theTime: the new unban time

Returns

Returns true if changed successfully, false otherwise.

Example

addCommandHandler("banMe",
function (player)
local ban = banPlayer(player)
setUnbanTime(ban, 500)
end
)

See Also