Use new ped element define (civilian was removed)

This commit is contained in:
Vortrex
2021-07-12 17:42:20 -05:00
parent 814514be84
commit a447e4f3f2

View File

@@ -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);
}
@@ -626,3 +626,10 @@ function processWantedLevelReset() {
}
// ===========================================================================
function setMinuteDuration(minuteDuration) {
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting minute duration to ${minuteDuration}ms`);
gta.time.minuteDuration = minuteDuration;
}
// ===========================================================================