From c8bc28b3474550e641bc0db1ca594ced1386f8be Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 4 Apr 2021 23:15:59 -0500 Subject: [PATCH] Add camera process CS event handler --- scripts/client/event.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/client/event.js b/scripts/client/event.js index aa7bbf03..24c5a875 100644 --- a/scripts/client/event.js +++ b/scripts/client/event.js @@ -50,6 +50,8 @@ function addAllEventHandlers() { addEventHandler("OnLostFocus", onLostFocus); addEventHandler("OnFocus", onFocus); + + addEventHandler("OnCameraProcess", onCameraProcess); } // =========================================================================== @@ -82,6 +84,8 @@ function onResourceReady(event, resource) { // =========================================================================== function onProcess(event, deltaTime) { + DeltaTime = deltaTime; + if(gta.game != GAME_GTA_IV) { gta.clearMessages(); } @@ -94,7 +98,6 @@ function onProcess(event, deltaTime) { return false; } - processMouseCamera(); destroyAutoCreatedPickups(); processLocalPlayerControlState(); clearLocalPlayerWantedLevel(); @@ -123,8 +126,8 @@ function onDrawnHUD(event) { } processSmallGameMessageRendering(); - processScoreboardRendering(); - process3DLabelRendering(); + processScoreBoardRendering(); + processLabelRendering(); processLogoRendering(); processItemActionRendering(); processSkinSelectRendering(); @@ -220,4 +223,9 @@ function onFocus(event) { function onLocalPlayerSwitchWeapon(oldWeapon, newWeapon) { } +// =========================================================================== + +function onCameraProcess(event) { +} + // =========================================================================== \ No newline at end of file