Closed TonybynMp4 closed 9 months ago
Simple thing you can do as well is instead of making config.decimalPlaces a boolean or number, just make it a number and use that to let them decide if it should be a whole number or a decimal number, then you can remove the ternary statement and just do local channel = qbx.math.round(tonumber(data.channel), config.decimalPlaces)
Simple thing you can do as well is instead of making config.decimalPlaces a boolean or number, just make it a number and use that to let them decide if it should be a whole number or a decimal number, then you can remove the ternary statement and just do
local channel = qbx.math.round(tonumber(data.channel), config.decimalPlaces)
I was trying to keep the current behavior, but if you prefer that i can add it real quick
Simple thing you can do as well is instead of making config.decimalPlaces a boolean or number, just make it a number and use that to let them decide if it should be a whole number or a decimal number, then you can remove the ternary statement and just do
local channel = qbx.math.round(tonumber(data.channel), config.decimalPlaces)
I was trying to keep the current behavior, but if you prefer that i can add it real quick
It wouldn't change behaviour, just what the user inputs
It wouldn't change behaviour, just what the user inputs
Currently a player can add as many decimal places as they want so it would, but i guess it doesn't really matter much, sounds like something qbus overlooked.
It wouldn't change behaviour, just what the user inputs
Currently a player can add as many decimal places as they want so it would, but i guess it doesn't really matter much, sounds like something qbus overlooked.
Ahh that's what you mean, yeah let the server owner/dev limit it
Description
They shouldn't work when the radio is off! Also made the subfrequency check faster.
Checklist