ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. restoreAllWorldModels

Function

restoreAllWorldModels

Server and clientMiscellaneousIdentical to MTA:SA

Restores every building and world object hidden with removeWorldModel. On the server it affects every player, on the client only what this client hid.

Syntax

bool restoreAllWorldModels()

Returns

true on success.

Example

addEventHandler("onResourceStop", resourceRoot, function()
    restoreAllWorldModels()
end)

See also