XernobyL Posted January 28, 2021 Share 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 Link to comment
Administrators Tut Posted January 28, 2021 Administrators Share 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/ Link to comment
Recommended Posts