1
Modding Questions/Help / Re: What is the codes to toggle buttons
« on: October 19, 2021, 08:29:27 AM »
Copy this
Code: [Select]
if IsButtonBeingPressed(3,0) then
NoTrouble = not NoTrouble
if NoTrouble then
DisablePunishmentSystem(true)
TextPrintString("Disabled Trouble",1,2)
else
DisablePunishmentSystem(False)
TextPrintString("Enabled Trouble",1,2)
end
end
end
and paste to your Function "your code"()