Hi guys !
Need an help .
i used this resourse for spawning vehicles :
And i got little problem , clone vehicles while client connecting . Any ideas how to make spawn vehicles only once , like only first connected client loads this vehicles ? and another question , how i understood , here is an trigger zone :
local function isNearObject(p1, obj)
local diff = obj.pos - p1
local dist = (diff.x * diff.x) + (diff.y * diff.y)
return (dist < (distance * distance))
end
For distance 300 .
How can i make , if dist > (distance * distance) , delete vehicles ? (if player not in zone delete vehicles)
I never code before , and what i tryed , doesnt work :
Thanks !