Skip to content

Commit

Permalink
Merge pull request #54 from outsider31000/patch-1
Browse files Browse the repository at this point in the history
fix(databindings): fixed bountycash example
  • Loading branch information
femga authored Nov 1, 2024
2 parents be5161a + 1ba1ef4 commit 110a7b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions databindings/other/bountycash/bountycash.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
function ShowBountyCash(title)
local rootContainer = DatabindingAddDataContainerFromPath("", "BountyCash")
DatabindingAddDataBool(rootContainer, "State", true)
DatabindingAddDataString(rootContainer, "Title", title)
DatabindingAddDataString(rootContainer, "Text", title)
end

function HideBountyCash()
local rootContainer = DatabindingAddDataContainerFromPath("", "BountyCash")
DatabindingAddDataBool(rootContainer, "State", false)
DatabindingAddDataString(rootContainer, "Text", "")
end

--[[
Expand All @@ -21,4 +22,4 @@ ShowBountyCash("Bounty Cash")

Wait(5000)

HideBountyCash()
HideBountyCash()

0 comments on commit 110a7b1

Please sign in to comment.