I think comments aobve me already answered your question, but i suggest you to re-visit LUA and scripting basics, since in your code you have to parameters, the first is source and the second is player, but in this case the source and the play are the same thing.
It seems like guiCreateProgressBar is a built-in function in MTA SA lib, I suggest you to use the "dx" version, you can also modify it in order to suite your server ( position, colors, background, borders etc....)
https://wiki.multitheftauto.com/wiki/DxDrawProgressBar
Good Luck.
السلام عليكم،
لا أظن أن لعب MTA:SA
رح يبقى شغال من الـVM MACHINES
بناءً على آخر Announcement
نزلوه بسيرفر ديسكورد
يا ريت اذا فهمت غلط أحد يصحح لي المعلومة و شكرا.