RedM Input System
ensure fx-inputin the top of your resources.cfg
- Custom designe Fixitfy.
- Very easy to use.
- vorp_inventory/html/img/example.png for icon usage
- icon = example.png
- credit goes to the QBCORE and RSGCore team for basecode and functionality
RegisterCommand('testinput', function(args)
local dialog = exports['fx-input']:ShowInput({
header = 'Target Player ID: 3',
submitText = "Confirm",
inputs = {
{
type = 'number',
name = 'playercash',
text = 'Player Cash: 2500 $',
isRequired = false,
},
{
type = 'number',
name = 'playergold',
text = 'Player Gold: 0',
isRequired = false,
}
}
})
if dialog then
print(json.encode(dialog))
end
end)