So when you’re passing that NUIMessage, the Javascript should be something like
variable ABC123Whatever = event.data.test
So you’d set that datatype to whatever HTML you have set up. You should be able to get an idea of what I’m saying from the link I posted above. If for some reason it’s just the args[1] that isnt working you could do this. But I don’t see why you would.
RegisterCommand('cash', function(source, args, rawCommand)
local cash = args[1]
SendNUIMessage({
test = cash
})
end)