Open FiveStudiosUk opened 3 years ago
If you're using ESX you need to go to your Database and change the default position. You'll find it on the users table
How to make multiple spawns or set the people on invisible for the others?
I for a example did like this:
local coords = {x =100.0, y =25.0, z =50.0}
local x, y = math.random(1, 25), math.random(1, 25);
coords.x += x; coords.y += y;
And then use the coords...
I for a example did like this:
local coords = {x =100.0, y =25.0, z =50.0} local x, y = math.random(1, 25), math.random(1, 25); coords.x += x; coords.y += y;
And then use the coords...
Where exactly you put this?
This is a example, basically everyone wont spawn next to eachother.
You put it where the first spawn happens, where you edit your char first time. And you have yo modify the code also.
This is a example, basically everyone wont spawn next to eachother.
You put it where the first spawn happens, where you edit your char first time. And you have yo modify the code also.
Hmm ok but the problem is I use esx and this uses the coords in the database :D
That is no problem, on esx go to client/main.lua, search for esx:playerLoaded event. The spawning happens there, but you have to know if the player is new. It requires some knowledge.
That is no problem, on esx go to client/main.lua, search for esx:playerLoaded event. The spawning happens there, but you have to know if the player is new. It requires some knowledge.
ok sure but for me without that much knowledge i would destroy me everything :D
Literally cannot find where to edit the spawn location
If more than 1 new member joins at once, they all spawn on top of each other