amx icon indicating copy to clipboard operation
amx copied to clipboard

Inefficient garage opening code

Open qaisjp opened this issue 4 years ago • 1 comments

https://github.com/multitheftauto/amx/blob/3330655c1c388adc4e97ec365cbb9b644a99445e/amx/client/garages.lua

It should use a colshape, as shown here in the setGarageOpen example.

Could generate colshape based on garage size, but it might be easier to use a colsphere + a static radius.

qaisjp avatar Jun 07 '20 15:06 qaisjp

It would also be faster to store the 50 garage's positions in a table rather than calling the function repeatedly, right?

theSpool avatar Jun 09 '20 12:06 theSpool