Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask file steaming/client syntax is invalid? #8

Closed
NRTnarathip opened this issue Feb 18, 2022 · 3 comments
Closed

Ask file steaming/client syntax is invalid? #8

NRTnarathip opened this issue Feb 18, 2022 · 3 comments

Comments

@NRTnarathip
Copy link

NRTnarathip commented Feb 18, 2022

local function hasLoaded(fn, type, request, limit)
	local timeout = limit or 100
	while not fn(request) do
		Wait(0)
		timeout -= 1 <<<----- be should "timeout = timeout - 1" or not?
		if timeout < 1 then
			return print(('Unable to load %s after %s ticks (%s)'):format(type, limit or 100, request))
		end
	end
	return request
end
@NRTnarathip
Copy link
Author

I'm not sure if it's working properly.
But I just saw the snytax, it's weird.
🙏

@DokaDoka
Copy link
Member

@NRTnarathip it might be weird to you but this is valid syntax in cfx lua 5.4.4
https://github.com/citizenfx/lua/blob/luaglm-dev/cfx/README.md#power-patches

@NRTnarathip
Copy link
Author

wow nice
thank's bro i just newbie✌️✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants