Vendetta/API/execute

From Quasar-RCE
Revision as of 06:47, 3 March 2025 by Wikiadmin (talk | contribs) (created execute)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Definition

lib.execute (string mod_id, string mod_version, string function_name, ...) :: ...

Description

Calls a singular function from a mod's class and returns its results

Arguments

  1. string mod_id: name of the mod being called
  2. string mod_version: version of the mod being called
  3. string function_name: name of the function to be called
  4. ... : arguments to be passed to the function being called

Returns

  1. ... : any values returned by the called function

Other notes

  • Created in LME 2.x.x (Neoloader indev)
  • If the value of the class is not a function, this will return that value instead