From f27a94ef71f495bff02c46070b60593947b8360b Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 23 May 2021 05:12:49 +1000 Subject: [PATCH] improvement(client): Conceal vehicles while selecting character --- client/main.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index b93c07f4..3702785e 100644 --- a/client/main.lua +++ b/client/main.lua @@ -53,13 +53,19 @@ if ESX.GetConfig().Multichar then for i=1, #players do if players[i] ~= PlayerId() then NetworkConcealPlayer(players[i], true, true) end end + local vehicles == ESX.Game.GetVehicles() + for i=1, #vehicles do + NetworkConcealEntity(vehicles[i], true) + end Citizen.Wait(500) end - local players = GetActivePlayers() for i=1, #players do if players[i] ~= PlayerId() then NetworkConcealPlayer(players[i], false, false) end end - Citizen.Wait(5000) + for i=1, #vehicles do + NetworkConcealEntity(vehicles[i], false) + end + Citizen.Wait(10000) canRelog = true end) end