fix house menu
This commit is contained in:
@@ -25,6 +25,7 @@ export default function house(globalData: GlobalData) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function keyPressHandler() {
|
function keyPressHandler() {
|
||||||
|
if (globalData.InMenu || globalData.InChat || globalData.InInput || !globalData.LoggedIn) return;
|
||||||
mp.game.ui.clearHelp(true);
|
mp.game.ui.clearHelp(true);
|
||||||
|
|
||||||
var subTitle = houseData.Type;
|
var subTitle = houseData.Type;
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
|
|
||||||
private static void HouseManager_OnEntityEnterColShape(ColShape colShape, Client client)
|
private static void HouseManager_OnEntityEnterColShape(ColShape colShape, Client client)
|
||||||
{
|
{
|
||||||
if (!client.IsLoggedIn()) return;
|
if (!client.IsLoggedIn() || client.IsInVehicle) return;
|
||||||
if (!houseColShapes.ContainsValue(colShape.Handle))
|
if (!houseColShapes.ContainsValue(colShape.Handle))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user