auto verkaufen fixen
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IEvents, EventName, Key, IEntity, IVehicle, VehicleSeat } from "../../game";
|
||||
import { IEvents, EventName, Key, IEntity, IVehicle, VehicleSeat, EntityType } from "../../game";
|
||||
import game from "../../index";
|
||||
import { RageEntity, RageVehicle, RagePlayer } from "./entities";
|
||||
|
||||
@@ -65,6 +65,10 @@ export default class RageEvents implements IEvents {
|
||||
|
||||
onEntityStreamIn(callback: (entity: IEntity) => void): void {
|
||||
mp.events.add("entityStreamIn", (e: EntityMp) => {
|
||||
if (!e) {
|
||||
return;
|
||||
}
|
||||
|
||||
var rE: RageEntity;
|
||||
switch (e.type) {
|
||||
case 'vehicle':
|
||||
|
||||
Reference in New Issue
Block a user