Adding an 'amount' input to a selection of items

Hi,

I’ve set up a system where when you tick a checkbox it adds an item e.g (service1 = 20) and puts it to the side of ‘selected items.’ and once you checkbox another item it adds it to the list e.g (service2 = 10) and it then adds together at the bottom as a total.
I did this by following How to Assign a value to checkbox - #2 by fayewatson the top answer in this guide.

What i’m wanting to do is add an input for the amount of items (as a number) so i can set the amount to 3 and click the checkbox and it will times the value by 3.

I am doing this for ‘Charges’ for a FiveM rp server. So you can select your charges and add them all together easily.

It is currently working as intended. I’d just like it so if a player kills 3 people the police can set the amount of murder or whatever to 3 so it easily calculates it for them.

Hmmm… maybe:

  1. create an input field with default value 1 (the field should be numbers - not text or anything else).
  2. add to your calculation * that input field
  3. when the user changes that input field, the value will automatically update.

Thanks for the response,

However I don’t understand how I would be able to implement this.