restoreAllWorldModels | Multi Theft Auto: Wiki Skip to content

restoreAllWorldModels

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

Syntax

bool restoreAllWorldModels ( )

Returns

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

  • bool: value

Code Examples

shared

This example adds command"restoreallworldobjects"that restores all world objects.

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

See Also

World Functions