Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Keys table:
- Keyboard: a-z (lowered!), 0-9, left shift, right shift, left ctrl, right ctrl, space, f1-14 num 0-9, num +, num -, num . , num *, num enter, num lock, num /
- Mouse: left_button, right_button, middle_button, x_button_1, x_button_2, x_button_3, x_button_4, x_button_5, wheel_up, wheel_down
- Possible table keys:
- ig_chat = true/false --If true, this will execute script and/or callback when you're typing something into chat
- script = 'path_to_script' --Path to the script, that will be executed after key pressed
- callback = function() .. methods .. end/direct_function --Function, that will be executed after key pressed
- no_stuck = true/false --If true, key will no longer repeat itself by holding key down long enough
- Configuration entry examples:
- --If you want to execute script file on keypress
- ['left shift'] = { script = 'trainer/autocooker.lua' },
- --If you want to execute function on keypress
- ['z'] = { callback = function() managers.player:player_unit():base():replenish() end },
- --If you want to execute script, ignoring check if you're in chat and also never repeat script, if key holden.
- ['x'] = { script = 'trainer/xray/xray.lua, ig_chat = true, no_stuck = true },
- --Comma after every entry is required, except if it is last entry in the table, where it isn't necessary.
- ]]
- keyboard_configuration = {
- ['4'] = { script = 'trainer/equipment_stuff/place_ammo.lua' },
- ['5'] = { script = 'trainer/equipment_stuff/place_medkit.lua' },
- ['6'] = { script = 'trainer/equipment_stuff/place_sentry.lua' },
- ['7'] = { script = 'trainer/equipment_stuff/place_tripmine.lua' },
- ['8'] = { script = 'trainer/equipment_stuff/place_ecm.lua' },
- ['9'] = { script = 'trainer/equipment_stuff/place_crate.lua' },
- ['x'] = { script = 'trainer/xray/xray.lua', no_stuck = true },
- ['z'] = { script = 'trainer/addons/replenish.lua' },
- ['num 1'] = { script = 'trainer/menu/main_menu-charmenu.lua', no_stuck = true },
- ['num 2'] = { script = 'trainer/menu/jobmenu-stealthmenu.lua', no_stuck = true },
- ['num 3'] = { script = 'trainer/menu/ingame/spawn_menu.lua', no_stuck = true },
- ['num 4'] = { script = 'trainer/menu/ingame/troll_menu.lua', no_stuck = true },
- ['num 5'] = { script = 'trainer/menu/ingame/interactions.lua', no_stuck = true },
- ['num 6'] = { script = 'trainer/menu/ingame/inventory_menu.lua', no_stuck = true },
- ['num 7'] = { script = 'trainer/menu/ingame/weaponlistmenu.lua', no_stuck = true },
- ['num 8'] = { script = 'trainer/menu/ingame/equipment_menu.lua', no_stuck = true },
- ['num 9'] = { script = 'trainer/menu/ingame/missionmenu.lua', no_stuck = true },
- ['home'] = { script = 'trainer/normalizer.lua', no_stuck = true },
- ['f6'] = { script = 'trainer/menu/config_menu.lua' },
- ['f5'] = { script = 'trainer/user_script.lua' },
- ['f4'] = { script = 'trainer/addons/carrystacker.lua' },
- ['f1'] = { script = 'trainer/menu/help.lua', no_stuck = true },
- ['f2'] = { script = 'trainer/menu/ingame/mod_menu.lua', no_stuck = true },
- ['num +'] = { script = 'trainer/menu/ingame/tools.lua', no_stuck = true },
- ['x_button_1'] = { script =
- ['middle_button'] = { script =
- ['end'] = { script = 'trainer/addons/instant_win.lua', no_stuck = true },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement