-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
improve multiple functions and one event #1232
Conversation
for i = 1, #pool do | ||
if pool[i] ~= myPed then | ||
peds[#peds + 1] = pool[i] | ||
local pool = GetGamePool('CPed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's lucky that the full pool is returned by default. Because then compatibility is broken because the default is to return an empty table, which is what the old method did. Now it will always return the pool. So it won't be backwards compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before if all the peds were requested the pool was returned and if not they would loop through
the pool table and add all peds except for the playerped to an empty table, now if the playerped is found then its removed from
the table and then the pool is being returned
No description provided.