resetMapInfo
Client-side
Server-side
Shared
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 is used to reset the state of a player. It is intended to restore a player to his default state as if he had just joined the server, without any scripts affecting him.
Syntax
resetMapInfo ( )Code Examples
server
This will reset all map info when the resource is stopped.
function onResourceStop() resetMapInfo()endaddEventHandler("onResourceStop", resourceRoot, onResourceStop)