nzkfc
10
Some improvements if possible:
-
Change it to vector4(x,x,x,x) for the vehicle spots, using vector3 and then a seperate heading makes it a bit tedious to do lots, most frameworks have a way to get vec4 these days to clipboard.
-
Possible to spawn cars on server start instead of player detect? (not sure on performance wise if this is good) but otherwise the player detection seems to be a bit slow.
-
Seems once player is in range, the cars slowly spawn in, is there a way to make them all spawn at once in that particular area? Detection seems to be a bit dodgy so it loads half of them someitmes.
-
Possible check on player spawn to load vehicles if spawning in within the radius?