mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
refactor(lib/addKeybind) Compat for old core structure
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user