Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-03-30, 22:49


Rumper

Majster od pysa






Wiek: 15
Na forum: 3316 dni
Posty: 231
Nick w MP: Rumper

Piwa: 592

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 20%
Witam, bo posiadam radar z vmta i mi wogule nie dzia?a,w?onczy?em go i wogule sie nie wy?wietla.
Za pomoc daje :piwo:

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
bartek.pl123
Wysłany: 2018-03-30, 22:52


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

"Lolelo" napisał/a:

Witam, bo posiadam radar z vmta i mi wogule nie dzia?a,w?onczy?em go i wogule sie nie wy?wietla.
Za pomoc daje :piwo:


Poka? b??dy z /debugscript 3

Podpis
Truck soon...
Ostatnio zmieniony przez Ciastuuś 2018-03-30, 22:56, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-30, 22:53


boszboszek

HEY






Wiek: 14
Na forum: 3505 dni
Posty: 146
Nick w MP: boszboszek

Piwa: 2172

Respekt: 261
Respekt: 261Respekt: 261Respekt: 261

Wy?wietla si? co? w debugscript3?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-30, 23:09


Rumper

Majster od pysa






Wiek: 15
Na forum: 3316 dni
Posty: 231
Nick w MP: Rumper

Piwa: 592

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 20%
WARNING: vmta-radar/client.lua(Line 37) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
Takie co? mam w konsoli

Podpis
Elo benc
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-30, 23:12


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

"Lolelo" napisał/a:

WARNING: vmta-radar/client.lua(Line 37) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
Takie co? mam w konsoli


Posiadasz funkcj? 'showPlayerHudComponent' ,kt?ra nie dzia?a w wersji MTA, kt?rej u?ywasz. Zamie? j? na setPlayerHudComponentVisible, aby wszystko by?o dobrze. ;)

Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-30, 23:18


Rumper

Majster od pysa






Wiek: 15
Na forum: 3316 dni
Posty: 231
Nick w MP: Rumper

Piwa: 592

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 20%
Nadal nie dzia?a

Podpis
Elo benc
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-30, 23:21


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

"Lolelo" napisał/a:

Nadal nie dzia?a


Nie pisz, ?e dalej nie dzia?a tylko podaj dalsze b??dy bo robisz nie potrzebny spam.

Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-30, 23:24


Rumper

Majster od pysa






Wiek: 15
Na forum: 3316 dni
Posty: 231
Nick w MP: Rumper

Piwa: 592

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 20%
Nie mam ?adnych b?edn?w.
A ?eby nie robi? spamu to tu masz kod
local screenW,screenH guiGetScreenSize()
local resW,resH 1280,720
local sW,sH =  (screenW/resW), (screenH/resH)


--Features
local alwaysRenderMap false
local alwaysRenderOxygen false
local disableGTASAhealth true
local disableGTASAarmor true
local disableGTASAoxygen true
local enableBlipDistance true


local worldWworldH 30723072
local blip 14
local turn true
local alpha 255
local sRotating 0
local rt dxCreateRenderTarget(290175)


function findRotation(x1,y1,x2,y2) 
  local t = -math.deg(math.atan2(x2-x1,y2-y1))
  if 0 then t 360 end;
  return t;
end
function getPointFromDistanceRotation(xydistangle) 
    local a math.rad(90 angle);
    local dx math.cos(a) * dist;
    local dy math.sin(a) * dist;
    return x+dxy+dy;
end
    
    function drawRadar()
        if getElementData(localPlayer,"logged"then
        setPlayerHudComponentVisible("radar"false)
            if disableGTASAhealth then setPlayerHudComponentVisible("health"falseend
            if disableGTASAarmor then setPlayerHudComponentVisible("armour"falseend
            if disableGTASAoxygen then setPlayerHudComponentVisible("breath"falseend
        if (not isPlayerMapVisible()) then
            local mWmH dxGetMaterialSize(rt)
            if ( alwaysRenderMap or getElementInterior(localPlayer) == then
                dxSetRenderTarget(rttrue)
            local xgetElementPosition(localPlayer)
            local XmW/-(x/(6000/worldW)), mH/+(y/(6000/worldH))
            local camX,camY,camZ getElementRotation(getCamera())
                dxDrawImage(worldW/2mH/+ (worldH/2), worldWworldH"img/radar_map.jpg"camZ, (x/(6000/worldW)), -(y/(6000/worldH)), tocolor(255255255255))
                dxSetRenderTarget()
        end        
        dxDrawImage((18+5)*sWscreenH-((179+5))*sH, (275-10)*sW, (135)*sHrt000tocolor(255255255200))
        
        --# Get rotations
        local __c_Rot getElementRotationgetCamera());
        local __p_Rot getElementRotationlocalPlayer )        
      
        --Cover
        dxDrawImage(18*sW530*sH275*sW160*sH"img/radar_cover.png"000tocolor(255255255255))        

        --#Blips
        local rxryrz getElementRotation(localPlayer)
        local lB = (23)*sW
        local rB = (23+265)*sW
        local tB screenH-(184)*sH
        local bB tB + (135)*sH
        local cXcY = (rB+lB)/2, (tB+bB)/+(35)*sH
        for kv in ipairs(getElementsByType("blip")) do            
            local pxpypz getElementPosition(localPlayer)    
            local _,_,camZ getElementRotation(getCamera())            
            local bxbybz getElementPosition(v)
            local actualDist getDistanceBetweenPoints2D(pxpybxby)
            local maxDist getBlipVisibleDistance(v)
            if ( actualDist <= maxDist then
                local dist actualDist/(6000/((worldW+worldH)/2))
                local rot findRotation(bxbypxpy)-camZ
                local bpxbpy getPointFromDistanceRotation(cXcYdistrot)
                local bpx math.max(lBmath.min(rBbpx))
                local bpy math.max(tBmath.min(bBbpy))
                local blipID getElementData(v"customIcon") or getBlipIcon(v)
                local ___bcA getBlipColor(v)
                local bcRbcGbcB 255255255

                if getBlipIcon(v) == 0 then
                    bcRbcGbcB getBlipColor(v)
                end
                
                local bUD "img/blip.png"
                if (bz pz) >= 5 then
                    bUD "img/blip_up.png"
                 elseif (bz pz) <= -5 then
                    bUD "img/blip_down.png"
                end                
                
                local bS getBlipSize(v)
                dxDrawImage(bpx -(blip*bS)*sW/2bpy -(blip*bS)*sH/2, (blip*bS)*sW, (blip*bS)*sH"img/blips/"..blipID..".png"000tocolor(bcRbcGbcBbcA))
            end
        end

        if ( renderNorthBlip then
            local _,_,camZ getElementRotation(getCamera())        
            local toLefttoToptoRighttoBottom cX-lBcY-tBrB-cXb-cY
            local bpxbpy getPointFromDistanceRotation(cXcYmath.sqrt(toTop^toLeft^2), -camZ+180)
            local bpx math.max(lBmath.min(rBbpx))
            local bpy math.max(tBmath.min(bBbpy))
            dxDrawImage(bpx -(blip*2)/2bpy -(blip*2)/2blip*2blip*2"img/blips/4.png"000)
        end
        local _,_,camZ getElementRotation(getCamera())
        dxDrawImage(cX -(blip*1.5)*sW/2cY -(blip*1.5)*sH/2, (blip*1.5)*sW, (blip*1.5)*sH"img/player.png"camZ-rz00)        
        
        
        --# Wanted
        local g_wl getPlayerWantedLevellocalPlayer )
        if ( g_wl then
            if ( turn == true then
                alpha alpha 5
                    if ( alpha 255 then
                        alpha 255
                        turn false
        end
        elseif ( turn == false then
            alpha alpha 5
                if ( alpha then
                    alpha 0
                    turn true
                end
        end
        dxDrawRectangle(23*sW536*sH265*sW135*sHtocolor(0102255alpha))
        else return end        
        end
    end
end
addEventHandler"onClientRender"rootdrawRadar)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-31, 01:42


DevJumpDj

VILLAGE MTA






Wiek: 27
Na forum: 3474 dni
Posty: 102
Nick w MP: D4NTE

Piwa: 3277

Respekt: 121
Respekt: 121

Masz tutaj dzia?aj?cy kod:

local screenW,screenH guiGetScreenSize()
local resW,resH 1280,720
local sW,sH =  (screenW/resW), (screenH/resH)

local alwaysRenderMap false
local alwaysRenderOxygen false
local disableGTASAhealth true
local disableGTASAarmor true
local disableGTASAoxygen true
local enableBlipDistance true

local worldWworldH 30723072
local blip 14
local turn true
local alpha 255
local sRotating 0
local rt dxCreateRenderTarget(290175)


function findRotation(x1,y1,x2,y2) 
  local t = -math.deg(math.atan2(x2-x1,y2-y1))
  if 0 then t 360 end;
  return t;
end
function getPointFromDistanceRotation(xydistangle) 
    local a math.rad(90 angle);
    local dx math.cos(a) * dist;
    local dy math.sin(a) * dist;
    return x+dxy+dy;
end
    
    function drawRadar()
        --if getElementData(localPlayer,"gram"then
        showPlayerHudComponent("radar"false)
            if disableGTASAhealth then showPlayerHudComponent("health"falseend
            if disableGTASAarmor then showPlayerHudComponent("armour"falseend
            if disableGTASAoxygen then showPlayerHudComponent("breath"falseend
        if (not isPlayerMapVisible()) then
            local mWmH dxGetMaterialSize(rt)
            if ( alwaysRenderMap or getElementInterior(localPlayer) == then
                dxSetRenderTarget(rttrue)
            local xgetElementPosition(localPlayer)
            local XmW/-(x/(6000/worldW)), mH/+(y/(6000/worldH))
            local camX,camY,camZ getElementRotation(getCamera())
                dxDrawImage(worldW/2mH/+ (worldH/2), worldWworldH"img/radar_map.jpg"camZ, (x/(6000/worldW)), -(y/(6000/worldH)), tocolor(255255255255))
                dxSetRenderTarget()
        end        
        dxDrawImage((18+5)*sWscreenH-((179+5))*sH, (275-10)*sW, (135)*sHrt000tocolor(255255255200))
        
        --# Get rotations
        local __c_Rot getElementRotationgetCamera());
        local __p_Rot getElementRotationlocalPlayer )        
      
        --Cover
        dxDrawImage(18*sW530*sH275*sW160*sH"img/radar_cover.png"000tocolor(255255255255))

        --#Blips
        local rxryrz getElementRotation(localPlayer)
        local lB = (23)*sW
        local rB = (23+265)*sW
        local tB screenH-(184)*sH
        local bB tB + (135)*sH
        local cXcY = (rB+lB)/2, (tB+bB)/+(35)*sH
        for kv in ipairs(getElementsByType("blip")) do            
            local pxpypz getElementPosition(localPlayer)    
            local _,_,camZ getElementRotation(getCamera())            
            local bxbybz getElementPosition(v)
            local actualDist getDistanceBetweenPoints2D(pxpybxby)
            local maxDist getBlipVisibleDistance(v)
            if ( actualDist <= maxDist then
                local dist actualDist/(6000/((worldW+worldH)/2))
                local rot findRotation(bxbypxpy)-camZ
                local bpxbpy getPointFromDistanceRotation(cXcYdistrot)
                local bpx math.max(lBmath.min(rBbpx))
                local bpy math.max(tBmath.min(bBbpy))
                local blipID getElementData(v"customIcon") or getBlipIcon(v)
                local ___bcA getBlipColor(v)
                local bcRbcGbcB 255255255

                if getBlipIcon(v) == 0 then
                    bcRbcGbcB getBlipColor(v)
                end
                
                local bUD "img/blip.png"
                if (bz pz) >= 5 then
                    bUD "img/blip_up.png"
                 elseif (bz pz) <= -5 then
                    bUD "img/blip_down.png"
                end                
                
                local bS getBlipSize(v)
                dxDrawImage(bpx -(blip*bS)*sW/2bpy -(blip*bS)*sH/2, (blip*bS)*sW, (blip*bS)*sH"img/blips/"..blipID..".png"000tocolor(bcRbcGbcBbcA))
            end
        end

        if ( renderNorthBlip then
            local _,_,camZ getElementRotation(getCamera())        
            local toLefttoToptoRighttoBottom cX-lBcY-tBrB-cXb-cY
            local bpxbpy getPointFromDistanceRotation(cXcYmath.sqrt(toTop^toLeft^2), -camZ+180)
            local bpx math.max(lBmath.min(rBbpx))
            local bpy math.max(tBmath.min(bBbpy))
            dxDrawImage(bpx -(blip*2)/2bpy -(blip*2)/2blip*2blip*2"img/blips/4.png"000)
        end
        local _,_,camZ getElementRotation(getCamera())
        dxDrawImage(cX -(blip*1.5)*sW/2cY -(blip*1.5)*sH/2, (blip*1.5)*sW, (blip*1.5)*sH"img/player.png"camZ-rz00)        
        
        
        --# Wanted
        local g_wl getPlayerWantedLevellocalPlayer )
        if ( g_wl then
            if ( turn == true then
                alpha alpha 5
                    if ( alpha 255 then
                        alpha 255
                        turn false
        end
        elseif ( turn == false then
            alpha alpha 5
                if ( alpha then
                    alpha 0
                    turn true
                end
        end
        dxDrawRectangle(23*sW536*sH265*sW135*sHtocolor(0102255alpha))
        else return end        
        end
    --end
end
addEventHandler"onClientRender"rootdrawRadar)

function usunElementy()
    setPlayerHudComponentVisible("ammo",false)
    setPlayerHudComponentVisible("armour",false)
    setPlayerHudComponentVisible("clock",false)
    setPlayerHudComponentVisible("health",false)
    setPlayerHudComponentVisible("breath",false)
    setPlayerHudComponentVisible("money",false)
    setPlayerHudComponentVisible("weapon",false)
end
usunElementy()


Podpis


VILLAGE MTA - www.villagemta.pl
D4NTE Właściciel serwera
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 2 piw(a):
Rumper, maksio41
Wysłany: 2018-03-31, 09:12


Rumper

Majster od pysa






Wiek: 15
Na forum: 3316 dni
Posty: 231
Nick w MP: Rumper

Piwa: 592

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 20%
Dzi?ki leci :piwo: ,
Do zamkni?cia

Podpis
Elo benc
Postaw piwo autorowi tego posta
 

 
Tagi: radar :: vibemta
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Radar z VibeMta Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku