diff --git a/scripts/client/server.js b/scripts/client/server.js index 2742b996..bcce5b1d 100644 --- a/scripts/client/server.js +++ b/scripts/client/server.js @@ -173,48 +173,6 @@ function sendServerNewAFKStatus(state) { // =========================================================================== -function playStreamingRadio(url, loop, volume, element = false) { - //gta.forceRadioChannel(-1); - if(url == "") { - if(streamingRadio != null) { - streamingRadio.stop(); - } - return true; - } - - if(streamingRadio != null) { - streamingRadio.stop(); - } - - // if(element != -1) { - // streamingRadioElement = getElementFromId(element); - //} - - streamingRadioVolume = volume; - - streamingRadio = audio.createSoundFromURL(url, loop); - streamingRadio.volume = volume/100; - streamingRadio.play(); -} - -// =========================================================================== - -function stopStreamingRadio() { - streamingRadio.stop(); - streamingRadio = null; -} - -// =========================================================================== - -function setStreamingRadioVolume(volume) { - if(streamingRadio != null) { - streamingRadioVolume = volume; - streamingRadio.volume = volume/100; - } -} - -// =========================================================================== - function anchorBoat(vehicleId) { } @@ -227,54 +185,6 @@ function setEnterPropertyKey(key) { // =========================================================================== -function makePedPlayAnimation(pedId, animGroup, animId, animType, animSpeed, loop, loopNoControl, freezeLastFrame, returnToOriginalPosition) { - if(getGame() < VRR_GAME_GTA_IV) { - if(animType == VRR_ANIMTYPE_ADD) { - if(getGame() == GAME_GTA_VC || getGame() == GAME_GTA_SA) { - getElementFromId(pedId).clearAnimations(); - } else { - getElementFromId(pedId).clearObjective(); - } - getElementFromId(pedId).addAnimation(animGroup, animId); - - if(getElementFromId(pedId) == localPlayer) { - inAnimation = true; - setLocalPlayerControlState(false, false); - localPlayer.collisionsEnabled = false; - } - } else if(animType == VRR_ANIMTYPE_BLEND) { - getElementFromId(pedId).position = getElementFromId(pedId).position; - getElementFromId(pedId).blendAnimation(animGroup, animId, animSpeed); - } else if(animType == VRR_ANIMTYPE_MOVEADD) { - getElementFromId(pedId).position = getElementFromId(pedId).position; - getElementFromId(pedId).blendAnimation(animGroup, animId, animSpeed); - } - } else { - natives.requestAnims(animGroup); - natives.taskPlayAnimNonInterruptable(getElementFromId(pedId), animId, animGroup, animSpeed, loop, loopNoControl, freezeLastFrame, returnToOriginalPosition, -1); - } -} - -// =========================================================================== - -function forcePedAnimation(pedId, animGroup, animId, animType, animSpeed, loop, loopNoControl, freezeLastFrame, returnToOriginalPosition) { - if(getGame() < VRR_GAME_GTA_IV) { - forcedAnimation = [animGroup, animId]; - setLocalPlayerControlState(false, false); - getElementFromId(pedId).position = getElementFromId(pedId).position; - getElementFromId(pedId).addAnimation(animGroup, animId); - } -} - -// =========================================================================== - -function hideAllGUI() { - closeAllWindows(); - setChatWindowEnabled(true); -} - -// =========================================================================== - function setGameScriptState(scriptName, state) { if(state == VRR_GAMESCRIPT_FORCE) { logToConsole(`[VRR.Server] Starting game script '${scriptName}'`);