zezim Posted August 1, 2022 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
Moderators Tut Posted August 1, 2022 Moderators Posted August 1, 2022 Moving this into the Scripting section! 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
roaddog Posted August 2, 2022 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) You gone learn today. I work my ass off, but I still can't pay tho.
Tekken Posted August 2, 2022 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 Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
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