TIP: If you’re asking ‘help for code’ it’s best to at least paste a small part of the segment you are in need of help for then it’s more likely that others are willing to ‘jump in’ more quickly instead of having to ‘dive into’ the code first
if PayWithBank == 1 then
-- Put YOUR code to deduct the amount from the players BANK account here
-- 'Basic Example': PlayerBankMoney = PlayerBankMoney - TicketPrice
else
-- Put YOUR code to deduct the amount from the players CASH money account here
-- 'Basic Example': PlayerCash = PlayerCash - TicketPrice
end
Is the code you are referring to
Well assuming you mentioned the lines for CASH, you would need to make an code where it takes cash money from the player. But the reason why i didn’t implemented this, is because many people use different frameworks which might not detect the money deduction or for example ‘see it as an cheat attempt’ if it’s not deducted through their framework.
Therefor i decided to not use ‘general functions’ and just leave it as commented tips, on where to place the code
What kind of code you might need totally depends on what framework you’re using, if you have some sort of (money) anti-cheat script/mod which might respond to it, or if you can/want to just use the native game functions to deduct money
Extra info (just in case): Frameworks for example are: systems like ESX and vRP
Hope this helped you a bit further in telling what you might need