XernobyL Posted January 28, 2021 Posted January 28, 2021 (edited) 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 Edited January 28, 2021 by XernobyL
Moderators Tut Posted January 28, 2021 Moderators Posted January 28, 2021 If you need to update a thread, click the Edit button on the lower left, or the 3 dots in the upper right of your post. https://forum.multitheftauto.com/topic/129173-alguem-em-ajuda-n-sei-como-coloco-o-script-ele-e-mysql-e-so-da-pra-comprar-items-do-inventario-com-o-charmoney-mais-queria-comprar-com-dinheiro-normal-do-jogo-me-ajudem-pfv/ 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