Add some IV support
This commit is contained in:
@@ -311,7 +311,9 @@ addNetworkHandler("ag.removeFromVehicle", function() {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function processEvent(event, deltaTime) {
|
||||
gta.clearMessages();
|
||||
if(gta.game != GAME_GTA_IV) {
|
||||
gta.clearMessages();
|
||||
}
|
||||
|
||||
if(localPlayer != null) {
|
||||
if(isSpawned) {
|
||||
@@ -436,7 +438,7 @@ addEventHandler("OnDrawnHUD", function (event) {
|
||||
}
|
||||
}
|
||||
|
||||
if(renderLabels) {
|
||||
if(renderLabels && gta.game != GAME_GTA_IV) {
|
||||
processLabelRendering();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,15 @@ addNetworkHandler("ag.nametag", function(clientName, characterName, colour, paus
|
||||
playerColours[clientName] = colour;
|
||||
playerPaused[clientName] = paused;
|
||||
playerPing[clientName] = ping;
|
||||
|
||||
if(gta.game == GAME_GTA_IV) {
|
||||
let client = getPlayerFromParams(clientName);
|
||||
if(client != false) {
|
||||
if(client.player != null) {
|
||||
client.player.setNametag(characterName, colour);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user