Check out example codes for "gets ents within range gmod lua". It will help you in understanding the concepts better.

Code Example 1

table ents.FindInSphere( Vector origin, number radius )

Learn ReactJs, React Native from akashmittal.com