Package Protocol

From RAGE Multiplayer Wiki
Revision as of 17:29, 1 May 2019 by Unknown (talk | contribs)

When referencing to other files in client_packages, you use package:// The root of this protocol is the client_packages folder.

For example, a file located in client_packages\index.html can be referred to with package://index.html A file located in client_packages\my-resource\index.html can be referred to with package://my-resource/index.html You can also require json files with it package://my-resource/beasts.json, so it'll be const beasts = require('package://my-resource/beasts.json')