isResourceArchived | Multi Theft Auto: Wiki Skip to content

isResourceArchived

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.


Checks whether the specified resource is archived. (Currently running from a ZIP file)

Syntax

isResourceArchived ( )

Code Examples

server

This example stops the resource if it's archived.

addEventHandler("onResourceStart", resourceRoot,
function(resourceElement)
if isResourceArchived(resourceElement) then
cancelEvent()
end
end
)