Use new ped element define (civilian was removed)
This commit is contained in:
@@ -391,7 +391,7 @@ function getLocalPlayerVehicleSeat() {
|
|||||||
|
|
||||||
function clearSelfOwnedPeds() {
|
function clearSelfOwnedPeds() {
|
||||||
logToConsole(LOG_DEBUG, `Clearing self-owned peds`);
|
logToConsole(LOG_DEBUG, `Clearing self-owned peds`);
|
||||||
getElementsByType(ELEMENT_CIVILIAN).forEach(function(ped) {
|
getElementsByType(ELEMENT_PED).forEach(function(ped) {
|
||||||
if(ped.isOwner) {
|
if(ped.isOwner) {
|
||||||
destroyElement(ped);
|
destroyElement(ped);
|
||||||
}
|
}
|
||||||
@@ -625,4 +625,11 @@ function processWantedLevelReset() {
|
|||||||
localPlayer.wantedLevel = 0;
|
localPlayer.wantedLevel = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function setMinuteDuration(minuteDuration) {
|
||||||
|
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting minute duration to ${minuteDuration}ms`);
|
||||||
|
gta.time.minuteDuration = minuteDuration;
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user