Functions
| Function | Returns | Description |
|---|---|---|
binds.list() | table | All active binds |
binds.add(field, key [, mode, value]) | bool | Add a bind |
binds.remove(field [, number]) | Remove a bind | |
binds.active(field [, number]) | bool | Whether a bind is currently engaged |
Bind modes
| Mode | Description |
|---|---|
"hold" | Active while key is held |
"toggle" | Toggle on press |
"always" | Always active |
Example
-- bind ragebot toggle to mouse4
binds.add('ragebot.enable', 0x05, 'toggle')
events.on('paint', function()
if binds.active('ragebot.enable') then
render.text(10, 10, color(0, 255, 0), 'RAGE ON', 's')
end
end)