alt.getResourceMain

Gets the main file name of the specified resource.

Returns a string.

It is not very useful.

Declaration

alt.getResourceMain(name: string): string

Usage

alt.getResourceMain('someResource');

Real World Example

const resource = alt.getResourceMain('someResource');
if (resource) {
    alt.log(resource);
}

These examples assume you have imported alt from alt-server.

results matching ""

    No results matching ""