Akira Posted June 3, 2019 Posted June 3, 2019 I dont know much about lua, and mta, but i know the basic because i know other languages like to java and python, so.. I dont know how the things work exactly at mta, and i need to make a moneyvip system, i think i will need to make the money script, and one mysql database, but i dont have idea of how to create an mysql database on my host ftp, and how to make an script that can modify write in the database, commands to add the money for players, and a log system, so.. Every information will help me so much Ps: sorry for this english, i'm brazilian ;-;
salh Posted June 3, 2019 Posted June 3, 2019 you want money vip system? like what? if you want give player money function consoleGiveCash ( thePlayer, command, amount ) --when the givecash command is called givePlayerMoney ( thePlayer, amount ) --give the player money according to the amount end addCommandHandler ( "givecash", consoleGiveCash ) --add a handler function for the command "givecash"
Akira Posted June 4, 2019 Author Posted June 4, 2019 No, i want to create a new money in the game, not the cash or the bank, an new money ;u;
salh Posted June 5, 2019 Posted June 5, 2019 you can use https://wiki.multitheftauto.com/wiki/DxDrawText to make text for new money and make function who make the number + or -
justn Posted June 5, 2019 Posted June 5, 2019 (edited) I'd suggest using element data. And store it however you feel like Edited June 5, 2019 by Shux
salh Posted June 6, 2019 Posted June 6, 2019 --Client Moneys = 0 addEventHandler("onClientRender", root, function() dxDrawText("Vip Money:"..Moneys, 1038, -3, 1366, 53, tocolor(255, 255, 255, 255), 2.00, "default", "left", "top", false, false, false, false, false) end ) function GiveMoneys() Moneys = Moneys + 1 end addCommandHandler("Vip", GiveMoneys)
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