diff --git a/scripts/client/event.js b/scripts/client/event.js index ce2a2038..26c75abe 100644 --- a/scripts/client/event.js +++ b/scripts/client/event.js @@ -53,6 +53,8 @@ function addAllEventHandlers() { addEventHandler("OnCameraProcess", onCameraProcess); addEventHandler("OnMouseWheel", onMouseWheel); + + addEventHandler("OnEntityProcess", onEntityProcess); } // =========================================================================== @@ -99,6 +101,7 @@ function onProcess(event, deltaTime) { processVehicleBurning(); //checkChatBoxAutoHide(); // Will be uncommented on 1.4.0 GTAC update //processVehicleFires(); + } // =========================================================================== @@ -235,4 +238,16 @@ function onMouseWheel(event, mouseId, deltaCoordinates, flipped) { processMouseWheelForChatBox(mouseId, deltaCoordinates, flipped); } +// =========================================================================== + +function onEntityProcess(event, entity) { + if(!isSpawned) { + return false; + } + + //if(entity.isType(ELEMENT_PED) && !entity.isType(ELEMENT_PLAYER)) { + // processNPCMovement(entity); + //} +} + // =========================================================================== \ No newline at end of file