- Documentation
- Shared functions
- restoreAllWorldModels
Function
restoreAllWorldModels
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
removeWorldModelStores the removal of San Andreas map objects with a given model within a sphere of the given radius. Can be called many times; each call adds an entry. If called before the game has loaded its models (e.g. while the player joins), it waits and applies once loading finishes.restoreWorldModelRemovesremoveWorldModelentries for a model whose sphere touches the given sphere. Without coordinates it removes all entries of that model. It removes the calling resource's own entries first, and other resources' entries only when it has none of its own.