removeResourceFile | Multi Theft Auto: Wiki Skip to content

removeResourceFile

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.


This function removes a file from the resource.

Syntax

removeResourceFile ( )

Code Examples

server

This example removes a .txt file from the resource sx_remanager (in-game script editor) when started.

addEventHandler("onResourceStart",resourceRoot,function()
resource = getResourceFromName("sx_resmanager")
removeResourceFile(resource,"description.txt")
end)