-
Posts
42 -
Joined
-
Last visited
Recent Profile Visitors
938 profile views
ArcAngeL's Achievements
Rat (9/54)
4
Reputation
-
Guys, I'm not talking about building a new radar.I think the dx functions are not what I need.I think I will use shader but I don't know what to do.How can I square the original radar?I just don't want it to be round.Can anyone tell me if anyone knows or has done this before?
-
I think the internet browser provides more detailed information.you can also see which resource other players are having trouble with.Use option and press 'd' .
-
you need to use performanceBrowser to see which function is wrong.open your internet browser and try this : http://serverip:port/performancebrowser/ >>>>> (Enter the your server ip and port number.) this page will ask you for a username and password.you will write the account information you use on the server. Everythink you need in this link : https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser
-
local screenW, screenH = guiGetScreenSize() function EXP_HUD(myexp) local exp = getElementData( localPlayer, "ZR_EXP" ) dxDrawText( tostring(exp) , screenW/2, screenH/2, screenW/2, screenH/2, tocolor( 255,255,255,255 ), 1, "bankgothic", "center", "center" ) end addEventHandler("onClientRender", root, EXP_HUD) addEvent( "showHUD", true ) addEventHandler( "showHUD", localPlayer, EXP_HUD ) ı think this will work.
-
Hello to everyone. I would appreciate it if friends with experience answer this topic.In the past a lot of people have opened the topic for a good host.but it's been over a lot of time and we really need help.It's hard to manage a server with zombies or peds.Because many players are getting poor performance from the server.(high ping or lowest level FPS) When we buy a host in Europe, it is a problem for players of the Americas.Likewise when we get a host from the continent of america, those in europe are having problems. Can an experienced friend recommend a good host company?Need a good company or a good location.If you have a really good suggestion, can you share with us? We will really be grateful.
-
ArcAngeL changed their profile photo
-
Mate this can't be for rpg servers.maybe its good for freeroam mode.
-
I think he need this resource.you will see how it is used for weapons or another objects. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836
-
local sX,sY = guiGetScreenSize() local sX,sY = sX*0.05,sY*0.95 font = "default-bold" function healthbar() local plr = localPlayer for k, pedsz in pairs(getElementsByType("ped", root, true)) do if getElementData(pedsz, "zombie") then target = getPedTarget(plr) if (not target) then return false end if (not getElementType(target) == "ped" ) then return false end if (not isElementOnScreen(pedsz)) then return false end dxDrawText("Zombie", sX+460, sY-627, sX+155, sY-19-(32*7), tocolor(0,0,0, 255), 1.5, font, "left", "top") dxDrawText("Zombie", sX+461.5, sY-625.5, sX+153.5, sY-17.5-(32*7), tocolor(204, 204, 204, 255), 1.5, font, "left", "top") local healthA = dxDrawRectangle(sX+420, sY-600,150, 12, tocolor(241, 236, 253, 114), false) local health = getElementHealth(pedsz) local lineLength = 100 * (health / 100) local healthB = dxDrawRectangle(sX+423, sY-597,lineLength, 7, tocolor(9, 172, 213, 254), false) end end end addEventHandler("onClientRender", root, healthbar) Hello All, its simple zombie health bar codes.dxDrawText and dxDrawRectangle look successful.but zombie is losing health but,health bar is doesnt go down sometimes even when ı aim at the zombies,health bar does not appear what can ı do for it ? Can my math. be wrong ?
-
Hello, This is a simple rank tag on the players head.but how can ı destroy this tag when riding the vehicle ? this nametag needs to disappear while riding the vehicle.can someone help me ? addEventHandler( "onClientRender",root, function( ) local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for _, v in ipairs( getElementsByType 'player' ) do --if(player ~= localPlayer) then tx, ty, tz = getElementPosition( v ) dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) if dist < 30.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 6 ) local x,y = getScreenFromWorldPosition( sx, sy, sz +1.5 ) if x then -- getScreenFromWorldPosition returns false if the point isn't on screen dxDrawLine3D ( sx, sy, sz+0.2,sx, sy, sz+1.35, tocolor ( 0, 210,0, 90 ), 1.45,false) dxDrawText( "Warrior", x-9.5, y, x, y, tocolor(0,210,0,150), 0.85 + ( 15 - dist ) * 0.035, "default-bold" ) end end end end end )
-
ı downloaded gta 4 animations for my server but only local player see the animations.how can ı change local player to 'player'.ı didint put on serverside its not worked.anybody can help me ? local animTable = { ifp = {}, anims = { "abseil", "ARRESTgun", "ATM", "BIKE_elbowL", "BIKE_elbowR", "BIKE_fallR", "BIKE_fall_off", "BIKE_pickupL", "BIKE_pickupR", "BIKE_pullupL", "BIKE_pullupR", "bomber", "CAR_alignHI_LHS", "CAR_alignHI_RHS", "CAR_align_LHS", "CAR_align_RHS", "CAR_closedoorL_LHS", "DAM_armL_frmLT", "DAM_armR_frmBK", "DAM_armR_frmFT", "DAM_armR_frmRT", "DAM_LegL_frmBK", "SHOT_leftP", "SHOT_partial", "SHOT_partial_B", "SHOT_rightP", "Shove_Partial", "Smoke_in_car", "sprint_civi", "sprint_panic", "Sprint_Wuzi", "swat_run", "Swim_Tread", "Tap_hand", "Tap_handP", "turn_180", "Turn_L", "Turn_R", "WEAPON_crouch", "XPRESSscratch" } } addEventHandler("onClientResourceStart", resourceRoot, function() animTable.ifp["block"] = "ped" animTable.ifp["ifp"] = engineLoadIFP("ped.ifp", animTable.ifp["block"]) for _, v in ipairs(animTable.anims) do engineReplaceAnimation(localPlayer, "ped", v, animTable.ifp["block"], v) end end )