Updated to version 1.1.0
New feature added for getting the returned clicked values.
How to use Buttons Selection with returned values?
When clicking a button, it will return BUY or SELL values as a String.
local inputData = {
title = "Your title",
desc = "Your description",
buttonparam1 = "BUY",
buttonparam2 = "SELL"
}
TriggerEvent("tp_inputs:getButtonReturnedValuesInput", inputData, function(cb)
if cb == "BUY" then
-- do action
end
end)