Skip to content

Commit

Permalink
Update client.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuzkay authored Nov 17, 2019
1 parent 3bc5df4 commit f3fc5bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kuz_UI/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ end
AddRemoteEvent("KUI:Create", CreateUI)

function OnReady()
AddPlayerChat('UI Loaded')
loaded = true
AddPlayerChat("creating ui " .. currentName .. " = " .. currentID)
ExecuteWebJS(ui, "OnCreate('"..currentName.."','"..currentID.."');")
end
AddEvent("KUI:Ready", OnReady)
Expand Down Expand Up @@ -78,7 +76,7 @@ AddRemoteEvent("KUI:AddOption", AddOption)

function InsertOption(id, title, description, button_text)
if loaded then
ExecuteWebJS(ui, "InsertOption('"..id.."','"..title.."','"..description.."','"..button_text.."');")
ExecuteWebJS(ui, "InsertOption('"..tostring(id).."','"..title.."','"..description.."','"..button_text.."');")
else
Delay(200, InsertOption, id, title, description, button_text)
end
Expand Down

0 comments on commit f3fc5bb

Please sign in to comment.