Tweaks for MafiaC compatibility

This commit is contained in:
Vortrex
2022-03-29 21:05:48 -05:00
parent 351ac19801
commit d2dbdf2450
4 changed files with 71 additions and 24 deletions

View File

@@ -137,7 +137,7 @@ function playerClientStopped(client) {
// ===========================================================================
function showGameMessage(client, text, colour, duration) {
function showGameMessage(client, text, colour, duration, fontName = "Pricedown") {
logToConsole(LOG_DEBUG, `[VRR.Client] Showing game message to ${getPlayerDisplayForConsole(client)} (${text}) for ${duration} milliseconds`);
sendNetworkEventToPlayer("vrr.smallGameMessage", client, text, colour, duration);
}
@@ -210,7 +210,7 @@ function setPlayer2DRendering(client, hudState = false, labelState = false, smal
function syncPlayerProperties(client) {
logToConsole(LOG_DEBUG, `[VRR.Client] Sending signal to sync ${getPlayerDisplayForConsole(client)}'s player ped properties`);
sendNetworkEventToPlayer("vrr.player.sync", null, client.player);
sendNetworkEventToPlayer("vrr.syncElement", null, client.player.id);
}
// ===========================================================================