zezim Posted August 1, 2022 Share Posted August 1, 2022 (edited) Hey guys, sup who can help me with this problem? I wanted to withdraw all the money the player has in his hand. I was trying to do that, but I couldn't. local value = math.random(0, 5000); if (getPlayerMoney(receiver) <>= value) then takePlayerMoney(receiver, value) end -- and if (getPlayerMoney(receiver) >= value) then takePlayerMoney(receiver, value) end I can't take all the player's money. I don't want to take a specific or random value, I want to take every value. Who can help me pls? Note: i can't do it =( local value = (1, 2500) if (getPlayerMoney(receiver) >= value) then takePlayerMoney(receiver, value) end -- local value = (1, 2500) if (getPlayerMoney(receiver) >= value) then takePlayerMoney(receiver, value) setPlayerMoney(receiver, 0) end Edited August 1, 2022 by zezim Link to comment
zezim Posted August 1, 2022 Author Share Posted August 1, 2022 i wanna get all money in the hands Link to comment
Administrators Tut Posted August 1, 2022 Administrators Share Posted August 1, 2022 Moving this into the Scripting section! Link to comment
roaddog Posted August 2, 2022 Share Posted August 2, 2022 18 hours ago, zezim said: i wanna get all money in the hands do this local value = getPlayerMoney(receiver) takePlayerMoney(receiver, value) Link to comment
Tekken Posted August 2, 2022 Share Posted August 2, 2022 (edited) <>= this is not a valid operator! what do you mean by "in his hands" ? Edited August 2, 2022 by Tekken Link to comment
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