XernobyL Posted January 28, 2021 Share Posted January 28, 2021 function buyItem(player, item, value, amount, count, db) if (getElementData(player, "char.money")>=amount) then exports.vz_inventario:giveItem(player, item, value, db, 0) setElementData(player, "char.money", getElementData(player, "char.money") - amount) exports["vz_info"]:showBoxS(player,"Compra efetuada com sucesso","info") else exports["vz_info"]:showBoxS(player,"Dinheiro insuficiente","error") end end Link to comment
Administrators Tut Posted January 28, 2021 Administrators Share Posted January 28, 2021 Hello, welcome to the forums @XernobyL Your thread's been moved into the Portuguese forum. The Site/Forum/Discord/Mantis/Wiki related is within the international part of the forums where posts should be English. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now