diff --git a/[core]/es_extended/client/compat.lua b/[core]/es_extended/client/compat.lua index 6b1babe8..a173f77b 100644 --- a/[core]/es_extended/client/compat.lua +++ b/[core]/es_extended/client/compat.lua @@ -1,3 +1,12 @@ --All client-side functions outsourced from the Core to the lib will be stored here for compatability, e.g: -ESX.RegisterInput = xLib.addKeybind \ No newline at end of file +function ESX.RegisterInput(command_name, label, input_group, key, on_press, on_release) + return xLib.addKeybind({ + name = command_name, + description = label, + defaultMapper = input_group, + defaultKey = key, + onPressed = on_press, + onReleased = on_release + }) +end \ No newline at end of file