Two coding questions.

How would I go about adding a value in to a “AddOption” like so.

[lua]
IconOps:AddOption(“Cost: //V.Cost”, v.cost)
[/lua]

Also, how would I make a function that could add a value to the player like the following example.

[lua]
function Add(ply,//ValueName,//ValueAmt)

ply:SetNWInt("//ValueName", //ValueAmt)

end
[/lua]

I’d do AddToolTip or w/e it was, but if you had something in shared, like
[lua]
models = {}
models[“models/…”] = {cost = 10} --May have to be “10”
–But this would work for that too:
IconOps:AddOption("Cost: ",v.cost) --This would have to be in a for k,v in pairs(models)…
[/lua]

For the first one, you need to concat the values…

[lua]options:AddOption( "Cost: "…v.cost, v.cost );[/lua]

For the second one, you just need to pass the arguments…

[lua]pl:SetNWInt( ValueName, ValueAmt );[/lua]