You are returning a string so that shouldnt be an issue. I belive the answer to your problem is that your breaking the GiveCash function. I’m assuming that give cash takes player then number if so you will need this.
function GM:PlayerSay(Player, Text, Global)
local ExplodedString = string.Explode(" ", string.lower(Text));
if ( ExplodedString == “!give” ) then
GiveCash(Player, tostring(ExplodedString) );
If you notice in your code your doing this [lua]GiveCash(Player, “!give 1000”);[/lua]
Aka thats a string so you need to only give the number. But also the number is a string so it needs to be converted to a number. [lua]GiveCash(Player, tostring(ExplodedString) );[/lua]