refactor(lib/addKeybind) Compat for old core structure

This commit is contained in:
zykem#0643
2025-10-30 19:14:24 +01:00
parent 7ebc92ec0f
commit cb41916ad1
+10 -1
View File
@@ -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
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