alt.getResourceExports
Used to get the current exported functions from another resource. Only useful if your resources are not in a single resource. In most cases developers on alt:V do not use multiple resources due to limitations.
May return an object
?
Declaration
alt.getResourceExports(name: string): any
Usage
alt.getResourceExports('resourceName');
Real World Example
const resource = alt.getResourceExports('myresource');
console.log(resource);
These examples assume you have imported alt
from alt-server
.