UQ.player.identifier(src) | character id or nil |
UQ.player.name(src) | roleplay name |
UQ.player.source(identifier) | player id of an online character |
UQ.player.list() | player ids with a loaded character |
UQ.player.names({ ids }) | { [id] = name }, online and offline (inside a thread) |
UQ.player.job(src) | { name, label, grade, gradeLabel, onDuty } |
UQ.player.isStaff(src, extraGroups) | true / false |
UQ.money.get(src, account) | balance |
UQ.money.add(src, account, amount, reason) | true / false |
UQ.money.remove(src, account, amount, reason) | false when the balance is too low |
UQ.items.count(src, item) | amount over every stack |
UQ.items.add(src, item, amount, metadata) | true / false |
UQ.items.remove(src, item, amount) | false when the player has too few |
UQ.items.label(item), UQ.items.box(src, item, 'add') | label / item popup |
UQ.items.usable(item, function(src, item) end) | |
UQ.vehicle.give(src, model, { garage, prefix }) | plate (inside a thread) |
UQ.callback.register(name, function(src, cb, ...) cb(result) end) | |
UQ.db.ensure({ tables, columns, seed }) | ok, err (inside a thread) |
UQ.discord.send(url, payload) | queued |
UQ.bucket.claim(tag) / UQ.bucket.release(tag) | private routing bucket |
UQ.cooldown(src, key, ms) | true when allowed |
UQ.onLoaded(fn) / UQ.onUnloaded(fn) | character loaded / logged out |