mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Add min value
This commit is contained in:
+3
-1
@@ -268,7 +268,9 @@
|
||||
|
||||
case 'slider' : {
|
||||
|
||||
if(elem.value > 0){
|
||||
let min = (typeof elem.min == 'undefined') ? 0 : elem.min;
|
||||
|
||||
if(elem.value > min){
|
||||
elem.value--;
|
||||
ESX_MENU.change(focused.namespace, focused.name, elem)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user