From 9df67578bbb6c90836dd2430df9efa1a36557b84 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 31 May 2021 19:29:58 +1000 Subject: [PATCH] tweak(client/main): Remove no collision (falls through world); set player as invincible --- client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index fa4d6649..df074b54 100644 --- a/client/main.lua +++ b/client/main.lua @@ -47,7 +47,7 @@ if ESX.GetConfig().Multichar then end SetEntityVisible(PlayerPedId(), 0, 0) SetLocalPlayerVisibleLocally(1) - SetEntityCollision(PlayerPedId(), 0, 1) + SetPlayerInvincible(PlayerId(), 1) Citizen.Wait(3) end end) @@ -71,7 +71,7 @@ if ESX.GetConfig().Multichar then NetworkConcealEntity(vehicles[i], false) end SetEntityVisible(PlayerPedId(), 1, 0) - SetEntityCollision(PlayerPedId(), 1, 1) + SetPlayerInvincible(PlayerId(), 0) Citizen.Wait(10000) canRelog = true end)