Any ideas how to split players from each other in one session?
Let me explain.
It is a kind of virual wolds in other gta multyplayers.
I saw this in gta online, houses f.e. Same interior, same server. Players are invisible for each others. I can invite people in my house and my friend can invite people in the same int.
I tried to use SetEntityVisible(GetPlayerPed(i), false) and it is works for a short time and in every tick.
But players still had collision.
that would make the player fall thru the world or able to noclip thru the walls and everything i am also looking for a way to make interiors separate this is how i do it
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
for i = 0, 25 do
if DoesEntityExist(GetPlayerPed(i)) and PlayerId() ~= i then
playerID = i
if not DoesEntityExist(GetPlayerPed(i)) and DoesEntityExist(GetPlayerPed(PlayerId())) then
SetPlayerInvisibleLocally(PlayerId(), true)
end
end
if GetPlayerPed(playerID) ~= GetPlayerPed(PlayerId()) and GetInteriorFromEntity(GetPlayerPed(playerID)) == 258561 then
SetPlayerInvisibleLocally(playerID, true)
end
if GetInteriorFromEntity(GetPlayerPed(playerID)) == 258561 then
SetPlayerInvisibleLocally(playerID, false)
end
end
end
end)