🟧install

Function to enumerate import possibilities.

install( Package parentPackage, boolean async, vararg importPaths ) -> Promise/any

This function is just a global alias of the gpm.Install function.

This function can return a promise instead of the result of a packet execution.

Example Usage

local promise = install( nil, true, "packages/glua-encoder.lua", "https://raw.githubusercontent.com/Pika-Software/glua-encoder/main/lua/packages/glua-encoder.lua" )
promise:Then( function( result )
    print( result )
end,
function( errorMessage )
    print( "Oh no, package install failed with error: " .. errorMessage )
end )

Last updated