Blockland Forums > Modification Help
help with slot machine variable change
yeahbuddy1OO:
Im trying to make the slot machine brick use money from a separate gamemode/system.
Thanks.
phflack:
what have you tried?
which bit are you having issues with?
yeahbuddy1OO:
--- Quote from: phflack on February 02, 2020, 10:17:53 PM ---what have you tried?
which bit are you having issues with?
--- End quote ---
I want to take the money from this: https://www.mediafire.com/file/q9b9l4hxdgfqw6h/System_GTA.zip/file
and have this use it: https://www.mediafire.com/file/93zbxkpqrzrdnj7/Brick_SlotMachine.zip/file
The only thing i can find is "money". I dont know how to code really at all I was just hoping I could find the name of the variable and use it in the slot machine, thats all.
phflack:
try looking in the code for what variable is being used in each
then replace the ones in the slot machines with the ones in the money mod?
if you post the relevant bits of code, we can probably point out which variables are which
yeahbuddy1OO:
--- Quote from: phflack on February 03, 2020, 12:03:15 AM ---try looking in the code for what variable is being used in each
then replace the ones in the slot machines with the ones in the money mod?
if you post the relevant bits of code, we can probably point out which variables are which
--- End quote ---
Thats the thing, I have no idea what is relevant. Does this help?
function gameConnection::addMoney(%this, %value) {
%user = GTAData.collection("users").document(%this.getDocumentName());
%this.setMoney(mAdd(%user.get("money"), %value));
}
Navigation
[0] Message Index
[#] Next page
Go to full version