Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: /inv
1. /inv nametagi
witam jak usunac nametagi na /inv
[lua]
--local nametagFont = "default"
local nametagFont = dxCreateFont( "czcionka.ttf", 20 )
if not nametagFont then nametagFont = "default-bold" end
local vopisFont = dxCreateFont( "czcionka.ttf", 20 )
if not vopisFont then vopisFont = "default-bold" end

local screenSize = Vector2(guiGetScreenSize())
local timer = false
local nametagAlpha = 175
local nametagColor =
{
r = 255,
g = 255,
b = 255
}

-- Funkcja nametag?w graczy i pojazd?w
-- zazwyczaj s? dla u?atwienia wygl?du.
addEventHandler("onClientRender", root, function()
local rootx, rooty, rootz = getCameraMatrix()
for i,player in ipairs(getElementsByType("player")) do
if getElementDimension(localPlayer) == getElementDimension(player) and getElementInterior(localPlayer) == getElementInterior(player) then
local x,y,z = getPedBonePosition(player,7)
local sx, sy = getScreenFromWorldPosition(x, y, z+0.50)
local sxc,syc =getScreenFromWorldPosition(x, y, z+0.69)
local sxc1,syc2 =getScreenFromWorldPosition(x, y, z+0.57)
local sxc2,syc3 =getScreenFromWorldPosition(x, y, z+0.63)
local sxc5,syc5 =getScreenFromWorldPosition(x, y, z+0.42)
if sx and sy and sxc and syc and sxc1 and syc2 then
local distance = getDistanceBetweenPoints3D(rootx, rooty, rootz, x, y, z)
if getElementAlpha(player) < 2 and not getElementData(localPlayer,"player:admin"...