Add del local player ped util

This commit is contained in:
Vortrex
2022-06-14 17:32:29 -05:00
parent 8f02c5c3d8
commit 7e7f729997

View File

@@ -1383,3 +1383,14 @@ function createAttachedGameBlip(element, type, size, colour = toColour(255, 255,
}
// ===========================================================================
function deletePlayerPed(client) {
if (areServerElementsSupported()) {
destroyElement(client.player);
} else {
sendNetworkEventToPlayer("vrr.deleteLocalPlayerPed", client);
}
}
// ===========================================================================