RestoreAllWorldModels

From Multi Theft Auto: Wiki

Jump to: navigation, search

This function allows restoring of all world objects,which were removed with RemoveWorldModel.

Syntax

bool restoreAllWorldModels()

Returns

Returns true if the world objects was restored, false otherwise.

Requirements

Minimum supported server 1.2.0-9.03618
Minimum supported client 1.2.0-9.03618
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section.

Example

This example restore all world objects.

addCommandHandler("restoreallworldobjects",
  function()
    restoreAllWorldModels()
  end
)

See Also

FROM VERSION 1.3.1 ONWARDS