Jump to content

Gallagher

Members
  • Posts

    216
  • Joined

  • Last visited

Everything posted by Gallagher

  1. already used FileDelete and ended up being robbed it is very easy to get the client-side files before they are deleted
  2. Your internal.db is buggy, you can not spawn cars by admin "p" panel. You should replace your internal and not for a new spawn more cars by "p"
  3. hello guys! I did a HuD which has a stock that I would not want anyone to steal. I tried using "jacks.png" cache="false" /> but not deleted the picture. Is there any way to delete the image from the client harddisk?
  4. lol is there any way around this?
  5. for some reason your script also giving this error. Is it a problem to resolution? what is your resolution?
  6. original or changed you? can send me your pm or by at 4shared?
  7. the script worked for you? did not work for me
  8. https://community.multitheftauto.com/index.php?p= ... ls&id=8883 you downloaded the resource?
  9. --// Created by KryPtoHolYx --\\ local s = {guiGetScreenSize()} local icons = {} for k = 1,65 do icons[k] = dxCreateTexture("blips/"..k..".png") end local blips = {} addEventHandler( "onClientResourceStart", getRootElement( ),function (res) if res ~= getThisResource() then return end radarTexture = dxCreateTexture("radar.jpg") currentZoomState = 0.5 local width, height = 1200,1200 radar = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900 ) mapRadar = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) radararea = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) pathmap = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) --local MimgW,MimgH = dxGetMaterialSize(radarTexture) MimgW, MimgH = dxGetMaterialSize(mapRadar) setTimer(function () blips = {} for i, v in ipairs( getElementsByType('blip') ) do local icon = getBlipIcon(v) if icon > 3 then local px,py = getElementPosition(v) local blip_x = (3000+px)/6000*MimgW local blip_y = (3000-py)/6000*MimgH local rot = getPedCameraRotation( localPlayer ) table.insert(blips,{x = blip_x, y = blip_y,icon = icon}) end end end,10000,0) addEventHandler ("onClientPreRender",root, function () dxSetRenderTarget( mapRadar,true ) dxDrawImage (0,0,MimgW,MimgH, radarTexture) for i, v in ipairs( blips ) do local rot = getPedCameraRotation( localPlayer ) dxDrawImage(v.x-20/2, v.y-20/2, 20, 20,icons[v.icon],rot) end for i, v in ipairs(getElementsByType('player') ) do if v ~= localPlayer then local r,g,b = 20,200,20 or getPlayerNametagColor(v) local px,py = getElementPosition(v) local p_x = (3000+px)/6000*MimgW local p_y = (3000-py)/6000*MimgH local prot = getPedRotation( v ) local p_blipsize = 20-currentZoomState dxDrawImage (p_x-p_blipsize/2,p_y-p_blipsize/2,p_blipsize,p_blipsize, icons[3],-prot,0,0,tocolor(r,g,b)) end end dxSetRenderTarget( ) dxSetRenderTarget( radararea,true ) for i, v in ipairs( getElementsByType('radararea') ) do local r,g,b,a = getRadarAreaColor(v) local w,h = getRadarAreaSize(v) x,y = getElementPosition(v) x = x / (6000 / MimgW) + MimgW/2 y = y / (-6000/ MimgH) + MimgH/2 dxDrawRectangle(x, (y-h) + 4 + (h/2), (w/2), (h/2), tocolor(r,g,b,a)) end dxSetRenderTarget( ) dxSetRenderTarget( radar,true ) local x,y,z = getElementPosition(localPlayer) local rot = getPedCameraRotation( localPlayer ) local mapx = x / (6000/MimgW) + MimgW/2 - width*currentZoomState/2 local mapy = y / (-6000/MimgH) + MimgH/2 - height*currentZoomState/2 dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,mapRadar,-rot) dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,radararea,-rot) dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,pathmap,-rot) local px,py = getElementPosition(localPlayer) local prot = getPedRotation( localPlayer ) local pblipsize = 20 - currentZoomState dxDrawImage (width/2-pblipsize/2,height/2-pblipsize/2,pblipsize,pblipsize, icons[3],-rot-prot) dxSetRenderTarget() showPlayerHudComponent("radar",false) dxDrawImageSection(s[1]*50/1440, s[2]*650/900, s[1]*300/1440, s[2]*200/900, 450,490, 300, 200,radar, 0, -90, 0, tocolor(255, 255, 255, 255),true) dxDrawRectangle(s[1]*50/1440, s[2]*650/900,s[1]*300/1440,s[2]*2/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*50/1440, s[2]*850/900,s[1]*300/1440,s[2]*2/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*350/1440, s[2]*650/900,s[1]*2/1440,s[2]*202/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*50/1440, s[2]*650/900,s[1]*2/1440,s[2]*200/900,tocolor(0,0,0,255),true) local x,y,z = getElementPosition(localPlayer) local zone = getZoneName(x,y,z) local textwidth = dxGetTextWidth(zone, 1.02,"default-bold") dxDrawRectangle(s[1]*50/1440, s[2]*820/900,s[1]*(textwidth+25)/1440,s[2]*30/900,tocolor(0,0,0,120),true) dxDrawText ( zone, s[1]*63/1440, s[2]*828/900,s[1]*(textwidth+25)/1440,s[2]*30/900, tocolor ( 255, 255, 255, 255 ), 1.02, "default-bold", "left", "top",false,false,true,false,true, 0,0,0) if getKeyState("num_add") then if currentZoomState - 0.01 < 0.5 then return else currentZoomState = currentZoomState - 0.03 end elseif getKeyState("num_sub") then if currentZoomState + 0.01 > 1.5 then return else currentZoomState = currentZoomState + 0.03 end end end ) end)
  10. error http://prntscr.com/31olj8
  11. error --// Created by KryPtoHolYx --\\ local s = {guiGetScreenSize()} local icons = {} for k = 1,65 do icons[k] = dxCreateTexture("blips/"..k..".png") end local blips = {} addEventHandler( "onClientResourceStart", getRootElement( ),function (res) if res ~= getThisResource() then return end radarTexture = dxCreateTexture("radar.jpg") currentZoomState = 0.5 local width, height = 1200,1200 radar = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900 ) mapRadar = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) radararea = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) pathmap = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) local MimgW,MimgH = dxGetMaterialSize(mapRadar) setTimer(function () blips = {} for i, v in ipairs( getElementsByType('blip') ) do local icon = getBlipIcon(v) if icon > 3 then local px,py = getElementPosition(v) local blip_x = (3000+px)/6000*MimgW local blip_y = (3000-py)/6000*MimgH local rot = getPedCameraRotation( localPlayer ) table.insert(blips,{x = blip_x, y = blip_y,icon = icon}) end end end,10000,0) addEventHandler ("onClientPreRender",root, function () dxSetRenderTarget( mapRadar,true ) dxDrawImage (0,0,MimgW,MimgH, radarTexture) for i, v in ipairs( blips ) do local rot = getPedCameraRotation( localPlayer ) dxDrawImage(v.x-20/2, v.y-20/2, 20, 20,icons[v.icon],rot) end for i, v in ipairs(getElementsByType('player') ) do if v ~= localPlayer then local r,g,b = 20,200,20 or getPlayerNametagColor(v) local px,py = getElementPosition(v) local p_x = (3000+px)/6000*MimgW local p_y = (3000-py)/6000*MimgH local prot = getPedRotation( v ) local p_blipsize = 20-currentZoomState dxDrawImage (p_x-p_blipsize/2,p_y-p_blipsize/2,p_blipsize,p_blipsize, icons[3],-prot,0,0,tocolor(r,g,b)) end end dxSetRenderTarget( ) dxSetRenderTarget( radararea,true ) for i, v in ipairs( getElementsByType('radararea') ) do local r,g,b,a = getRadarAreaColor(v) local w,h = getRadarAreaSize(v) x,y = getElementPosition(v) x = x / (6000 / MimgW) + MimgW/2 y = y / (-6000/ MimgH) + MimgH/2 dxDrawRectangle(x, (y-h) + 4 + (h/2), (w/2), (h/2), tocolor(r,g,b,a)) end dxSetRenderTarget( ) dxSetRenderTarget( radar,true ) local x,y,z = getElementPosition(localPlayer) local rot = getPedCameraRotation( localPlayer ) local mapx = x / (6000/MimgW) + MimgW/2 - width*currentZoomState/2 local mapy = y / (-6000/MimgH) + MimgH/2 - height*currentZoomState/2 dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,mapRadar,-rot) dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,radararea,-rot) dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,pathmap,-rot) local px,py = getElementPosition(localPlayer) local prot = getPedRotation( localPlayer ) local pblipsize = 20 - currentZoomState dxDrawImage (width/2-pblipsize/2,height/2-pblipsize/2,pblipsize,pblipsize, icons[3],-rot-prot) dxSetRenderTarget() showPlayerHudComponent("radar",false) dxDrawImageSection(s[1]*50/1440, s[2]*650/900, s[1]*300/1440, s[2]*200/900, 450,490, 300, 200,radar, 0, -90, 0, tocolor(255, 255, 255, 255),true) dxDrawRectangle(s[1]*50/1440, s[2]*650/900,s[1]*300/1440,s[2]*2/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*50/1440, s[2]*850/900,s[1]*300/1440,s[2]*2/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*350/1440, s[2]*650/900,s[1]*2/1440,s[2]*202/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*50/1440, s[2]*650/900,s[1]*2/1440,s[2]*200/900,tocolor(0,0,0,255),true) local x,y,z = getElementPosition(localPlayer) local zone = getZoneName(x,y,z) local textwidth = dxGetTextWidth(zone, 1.02,"default-bold") dxDrawRectangle(s[1]*50/1440, s[2]*820/900,s[1]*(textwidth+25)/1440,s[2]*30/900,tocolor(0,0,0,120),true) dxDrawText ( zone, s[1]*63/1440, s[2]*828/900,s[1]*(textwidth+25)/1440,s[2]*30/900, tocolor ( 255, 255, 255, 255 ), 1.02, "default-bold", "left", "top",false,false,true,false,true, 0,0,0) if getKeyState("num_add") then if currentZoomState - 0.01 < 0.5 then return else currentZoomState = currentZoomState - 0.03 end elseif getKeyState("num_sub") then if currentZoomState + 0.01 > 1.5 then return else currentZoomState = currentZoomState + 0.03 end end end ) end)
  12. hello guys I found this script in the community but it is not working. the debugsdcript says this error on this line 9 Local MimgW, MimgH = dxGetMaterialSize (mapRadar) in MimgW , --// Created by KryPtoHolYx --\\ local s = {guiGetScreenSize()} local icons = {} for k = 1,65 do icons[k] = dxCreateTexture("blips/"..k..".png") end addEventHandler( "onClientResourceStart", getRootElement( ),function (res) if res ~= getThisResource() then return end radarTexture = dxCreateTexture("radar.jpg") currentZoomState = 0.5 local width, height = 1200,1200 radar = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900 ) mapRadar = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900 ) radararea = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) pathmap = dxCreateRenderTarget( s[1]*width*3/1440, s[2]*height*3/900,true ) local MimgW,MimgH = dxGetMaterialSize(mapRadar) addEventHandler ("onClientPreRender",root, function () local blips = {} dxSetRenderTarget( mapRadar,true ) dxDrawImage (0,0,MimgW,MimgH, radarTexture) for i, v in ipairs( getElementsByType('blip') ) do local icon = getBlipIcon(v) if icon > 3 then local px,py = getElementPosition(v) local blip_x = (3000+px)/6000*MimgW local blip_y = (3000-py)/6000*MimgH local rot = getPedCameraRotation( localPlayer ) size = 20 dxDrawImage(blip_x-size/2, blip_y-size/2, size, size,icons[icon],rot) end end for i, v in ipairs(getElementsByType('player') ) do if v ~= localPlayer then local r,g,b = 20,200,20 or getPlayerNametagColor(v) local px,py = getElementPosition(v) local p_x = (3000+px)/6000*MimgW local p_y = (3000-py)/6000*MimgH local prot = getPedRotation( v ) local p_blipsize = 20-currentZoomState dxDrawImage (p_x-p_blipsize/2,p_y-p_blipsize/2,p_blipsize,p_blipsize, "blips/3.png",-prot,0,0,tocolor(r,g,b)) end end dxSetRenderTarget( ) dxSetRenderTarget( radararea,true ) for i, v in ipairs( getElementsByType('radararea') ) do local r,g,b,a = getRadarAreaColor(v) local w,h = getRadarAreaSize(v) x,y = getElementPosition(v) x = x / (6000 / MimgW) + MimgW/2 y = y / (-6000/ MimgH) + MimgH/2 dxDrawRectangle(x, (y-h) + 4 + (h/2), (w/2), (h/2), tocolor(r,g,b,a)) end dxSetRenderTarget( ) dxSetRenderTarget( radar,true ) local x,y,z = getElementPosition(localPlayer) local rot = getPedCameraRotation( localPlayer ) local mapx = x / (6000/MimgW) + MimgW/2 - width*currentZoomState/2 local mapy = y / (-6000/MimgH) + MimgH/2 - height*currentZoomState/2 dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,mapRadar,-rot) dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,radararea,-rot) dxDrawImageSection (0,0,width,height,mapx,mapy,width*currentZoomState,height*currentZoomState,pathmap,-rot) local px,py = getElementPosition(localPlayer) local prot = getPedRotation( localPlayer ) local pblipsize = 20 - currentZoomState dxDrawImage (width/2-pblipsize/2,height/2-pblipsize/2,pblipsize,pblipsize, icons[3],-rot-prot) dxSetRenderTarget() showPlayerHudComponent("radar",false) dxDrawImageSection(s[1]*50/1440, s[2]*650/900, s[1]*300/1440, s[2]*200/900, 450,490, 300, 200,radar, 0, -90, 0, tocolor(255, 255, 255, 255),true) dxDrawRectangle(s[1]*50/1440, s[2]*650/900,s[1]*300/1440,s[2]*2/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*50/1440, s[2]*850/900,s[1]*300/1440,s[2]*2/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*350/1440, s[2]*650/900,s[1]*2/1440,s[2]*202/900,tocolor(0,0,0,255),true) dxDrawRectangle(s[1]*50/1440, s[2]*650/900,s[1]*2/1440,s[2]*200/900,tocolor(0,0,0,255),true) local x,y,z = getElementPosition(localPlayer) local zone = getZoneName(x,y,z) local textwidth = dxGetTextWidth(zone, 1.02,"default-bold") dxDrawRectangle(s[1]*50/1440, s[2]*820/900,s[1]*(textwidth+25)/1440,s[2]*30/900,tocolor(0,0,0,120),true) dxDrawText ( zone, s[1]*63/1440, s[2]*828/900,s[1]*(textwidth+25)/1440,s[2]*30/900, tocolor ( 255, 255, 255, 255 ), 1.02, "default-bold", "left", "top",false,false,true,false,true, 0,0,0) if getKeyState("num_add") then if currentZoomState - 0.01 < 0.5 then return else currentZoomState = currentZoomState - 0.03 end elseif getKeyState("num_sub") then if currentZoomState + 0.01 > 1.5 then return else currentZoomState = currentZoomState + 0.03 end end end ) end)
  13. if getElementData(getLocalPlayer(),"GPS") >= 1 then showPlayerHudComponent ("radar",false)
  14. Hello! This script is the Open source project, so I think I can edit it as you wish. But it is not working can see the error? -- **************************************************************************** -- * -- * PROJECT: Open MTA:DayZ -- * FILE: client/classes/HUD/HUDRadar.lua -- * PURPOSE: HUD radar class -- * -- **************************************************************************** HUDRadar = inherit(Object) function HUDRadar:constructor() TransferManager:getSingleton():requestFilesAsOnce({"files/images/HUD/Radar.jpg"}, bind(HUDRadar.load, self)) showPlayerHudComponent("radar", false) self.m_Texture = nil self.m_Width, self.m_Height = 394, 394 self.m_ImageWidth, self.m_ImageHeight = 5000, 500 self.m_Zoom = 1 end function HUDRadar:load() self.m_Texture = dxCreateTexture("files/images/HUD/Radar.jpg") self.m_ImageWidth, self.m_ImageHeight = dxGetMaterialSize(self.m_Texture) addEventHandler("onClientRender", root, bind(self.draw, self)) end function HUDRadar:draw() -- Draw the rectangle (the border) dxDrawRectangle(20, screenHeight-250, 400, 230, Color.Black) -- Draw the map local _, _, rotation = getElementRotation(localPlayer) local posX, posY, posZ = getElementPosition(localPlayer) local mapX = posX / (6000 /self.m_ImageWidth) + self.m_ImageWidth/2 - self.m_Width/self.m_Zoom/2 local mapY = posY / (-6000/self.m_ImageHeight) + self.m_ImageHeight/2 - self.m_Height/self.m_Zoom/2 dxDrawImageSection(23, screenHeight-247, self.m_Width, self.m_Height, mapX, mapY, self.m_Width/self.m_Zoom, self.m_Height/self.m_Zoom, self.m_Texture) -- Draw the player blip dxDrawRectangle(20+self.m_Width/2, screenHeight-247+self.m_Height/2, 5, 5, Color.Red) end function HUDRadar:setZoom(zoom) self.m_Zoom = zoom end function HUDRadar:getZoom() return self.m_Zoom end
  15. Gallagher

    Blips

    hello guys' it is possible to create only a blip on the map "f11"? I do not like the blip appears on gps blip = createBlip(-239,41,2.5, 21 )
  16. I used FileDelete, but somehow managed to managed to steal the script
  17. someone came into my server and stole my script
  18. stole my script can do WHAT? he was only FileDelete
  19. https://wiki.multitheftauto.com/wiki/Meta.xml so is right? "panel" author="rex" version="1.3" type="script" />
  20. then it is safe! Brazilians have people saying they stole my scripts, then it is a lie
×
×
  • Create New...