That is usually the first thing you try but it will look like 9999 gold on your screen. But the server will still be 20 or whatever.
Gold creation is usually done via other methods. Such as item duping and then selling it. Most preferably using script to auto duplicate items and auto sell for you at a shop.