PainedPsyche / cui_character

An advanced character and clothes editor for esx framework that aims to be comfortable to use, hide complexity and blend in with original GTA V interface elements.
73 stars 47 forks source link

nowhere to change spawn location #38

Open FiveStudiosUk opened 3 years ago

FiveStudiosUk commented 3 years ago

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

Arcainex commented 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

maxcamorra commented 3 years ago

How to make multiple spawns or set the people on invisible for the others?

Mart556 commented 3 years ago

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...

maxcamorra commented 3 years ago

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?

Mart556 commented 3 years ago

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.

maxcamorra commented 3 years ago

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

Mart556 commented 3 years ago

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.

maxcamorra commented 3 years ago

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