diff --git a/scripts/client/logo.js b/scripts/client/logo.js index ba068b57..bdf45541 100644 --- a/scripts/client/logo.js +++ b/scripts/client/logo.js @@ -38,7 +38,7 @@ function loadLogoImage() { function processLogoRendering() { if(renderLogo) { if(logoImage != null) { - drawing.drawRectangle(logoImage, logoPos, logoSize); + gta.drawRectangle(logoImage, logoPos, logoSize); } } } diff --git a/scripts/client/nametag.js b/scripts/client/nametag.js index 2d9e198a..1bf83aa2 100644 --- a/scripts/client/nametag.js +++ b/scripts/client/nametag.js @@ -96,9 +96,9 @@ function drawNametag(x, y, health, armour, text, ping, alpha, distance, colour, let hx = x-width/2; let hy = y-10/2; let colourB = toColour(0, 0, 0, Math.floor(255.0*alpha)); // Background colour (black) - drawing.drawRectangle(null, [hx, hy], [width, 8], colourB, colourB, colourB, colourB); + gta.drawRectangle(null, [hx, hy], [width, 8], colourB, colourB, colourB, colourB); let colour = toColour(Math.floor(255.0-(health*255.0)), Math.floor(health*255.0), 0, Math.floor(255.0*alpha)); // Health bar colour (varies, depending on health) - drawing.drawRectangle(null, [hx+2, hy+2], [(width-4)*health, 10-6], colour, colour, colour, colour); + gta.drawRectangle(null, [hx+2, hy+2], [(width-4)*health, 10-6], colour, colour, colour, colour); } // Armour Bar @@ -109,9 +109,9 @@ function drawNametag(x, y, health, armour, text, ping, alpha, distance, colour, let hx = x-width/2; let hy = y-10/2; let colourB = toColour(255, 0, 0, 0); // Background colour (black) - drawing.drawRectangle(null, [hx, hy], [width, 8], colourB, colourB, colourB, colourB); + gta.drawRectangle(null, [hx, hy], [width, 8], colourB, colourB, colourB, colourB); let colour = toColour(255, 255, 255, 255); // Armour bar colour (white) - drawing.drawRectangle(null, [hx+2, hy+2], [(width-4)*armour, 10-6], colour, colour, colour, colour); + gta.drawRectangle(null, [hx+2, hy+2], [(width-4)*armour, 10-6], colour, colour, colour, colour); } y -= 20;