XernobyL Posted January 28, 2021 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
Moderators Tut Posted January 28, 2021 Moderators 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. Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu
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