Not released yet. These pages are written from the code of
manniche_radial and can change before the release.Client exports
| Export | What it does |
|---|---|
addItem(item, parentId) | Adds an item. parentId is the id of a menu item or the name of an extra menu. Leave it out for the main menu's top level. Returns the item id, or nil if item is not a table with a string label. An item without id gets added:N. An existing id is replaced. |
removeItem(id) | Removes items with that id. |
open(name) | Opens the main menu, or the extra menu with that name. |
close() | Closes the open menu. |
isOpen(name) | True if any menu is open, or only that menu when name is given. |
Items added by a resource are removed when that resource stops. Added items take the same fields as config items.
local id = exports.manniche_radial:addItem({
label = 'Open phone',
icon = 'smartphone',
event = 'my_phone:open',
}, 'person')
exports.manniche_radial:removeItem(id)
exports.manniche_radial:open('emotes')
Server exports
| Export | What it does |
|---|---|
GiveVehicleKey(src, plate) | Gives the player keys by plate. Returns false if the player id is unknown, else true. |
RemoveVehicleKey(src, plate) | Takes the keys back. Returns true. |
HasVehicleKey(src, plate) | True for given keys or database ownership. |
exports.manniche_radial:GiveVehicleKey(source, plate)
Given keys are kept in memory and are lost on restart. Plates are trimmed and upper-cased.
Events
These net events are used by the script itself. Do not trigger them from other resources.
- Server:
manniche_radial:lock,manniche_radial:giveKey,manniche_radial:removeKey - Client:
manniche_radial:lockResult,manniche_radial:notify