fix vehicle entering when in chat
This commit is contained in:
@@ -26,7 +26,7 @@ var inMenu = false;
|
||||
mp.game.vehicle.defaultEngineBehaviour = false;
|
||||
|
||||
import vehicleEntering from './vehiclesync/entering';
|
||||
vehicleEntering();
|
||||
vehicleEntering(globalData);
|
||||
|
||||
import wanteds from './Gui/wanteds';
|
||||
wanteds(globalData);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export default function vehicleEntering() {
|
||||
export default function vehicleEntering(globalData: GlobalData) {
|
||||
mp.events.add('render', () => {
|
||||
const controls = mp.game.controls;
|
||||
if(globalData.InChat) return;
|
||||
|
||||
controls.enableControlAction(0, 23, true);
|
||||
controls.disableControlAction(0, 58, true);
|
||||
|
||||
Reference in New Issue
Block a user