Use new ped element define (civilian was removed)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user