From a447e4f3f230e7f51beb78a902da6da9c3d83fcc Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 12 Jul 2021 17:42:20 -0500 Subject: [PATCH] Use new ped element define (civilian was removed) --- scripts/client/utilities.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index 1caa928b..9e138c47 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -391,7 +391,7 @@ function getLocalPlayerVehicleSeat() { function clearSelfOwnedPeds() { logToConsole(LOG_DEBUG, `Clearing self-owned peds`); - getElementsByType(ELEMENT_CIVILIAN).forEach(function(ped) { + getElementsByType(ELEMENT_PED).forEach(function(ped) { if(ped.isOwner) { destroyElement(ped); } @@ -625,4 +625,11 @@ function processWantedLevelReset() { localPlayer.wantedLevel = 0; } +// =========================================================================== + +function setMinuteDuration(minuteDuration) { + logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting minute duration to ${minuteDuration}ms`); + gta.time.minuteDuration = minuteDuration; +} + // =========================================================================== \ No newline at end of file