diff --git a/scripts/server/native/connected.js b/scripts/server/native/connected.js index 6fd1f0d2..caa54edf 100644 --- a/scripts/server/native/connected.js +++ b/scripts/server/native/connected.js @@ -1382,4 +1382,15 @@ function createAttachedGameBlip(element, type, size, colour = toColour(255, 255, } } +// =========================================================================== + +function deletePlayerPed(client) { + if (areServerElementsSupported()) { + destroyElement(client.player); + } else { + sendNetworkEventToPlayer("vrr.deleteLocalPlayerPed", client); + } + +} + // =========================================================================== \ No newline at end of file