YeetMeister Posted April 17, 2019 Share Posted April 17, 2019 Im making a Critical ops FoV Hack but i have trouble with it pls help. So my fov script is working fine but i want that the seekbar is displays the current FoV Value Mine displays 0 always but i want that it displays 360 if the current fov is 360 Is that even possible? If yes pls help @Enyby Link to comment Share on other sites More sharing options...
CmP Posted April 17, 2019 Share Posted April 17, 2019 According to the documentation for prompt function, "default" parameter of the function can be used to set default value for any prompt type. Example code for seek bar that "remembers" previous values: local input local defaultValue = 50 while true do if gg.isVisible() then gg.setVisible(false) input = gg.prompt({'Test seek bar [10; 100]'}, {defaultValue}, {'number'}) if input ~= nil then defaultValue = input[1] end end gg.sleep(100) end Link to comment Share on other sites More sharing options...
YeetMeister Posted April 17, 2019 Author Share Posted April 17, 2019 (fovs = saved fov value) local input local defaultValue = gg.getListItems(fovS) while true do if gg.isVisible() then gg.setVisible(false) input = gg.prompt({'Test seek bar [10; 100]'}, {defaultValue}, {'number'}) if input ~= nil then defaultValue = input[1] end end gg.sleep(100) end 19 minutes ago, CmP said: According to the documentation for prompt function, "default" parameter of the function can be used to set default value for any prompt type. Example code for seek bar that "remembers" previous values: local input local defaultValue = 50 while true do if gg.isVisible() then gg.setVisible(false) input = gg.prompt({'Test seek bar [10; 100]'}, {defaultValue}, {'number'}) if input ~= nil then defaultValue = input[1] end end gg.sleep(100) end Huh.... Thx alot If i save the FoV Value to a Table i could use it like that Link to comment Share on other sites More sharing options...
Question
YeetMeister
Im making a Critical ops FoV Hack but i have trouble with it pls help.
So my fov script is working fine but i want that the seekbar is displays the current FoV Value
Mine displays 0 always but i want that it displays 360 if the current fov is 360
Is that even possible? If yes pls help
@Enyby
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.