amirmahdi
Members-
Posts
52 -
Joined
-
Last visited
Everything posted by amirmahdi
-
This is the reason why I just want the texture of the watch to appear – it's part of the character custom system where the side can have a few types of watches with different textures, so I want the watch to appear only when it has texture.
-
hello Look at the photo below, this watch doesn't have texture in its txd file, and that's why it's turned white, what should I do to make this watch invisible as long as it doesn't have texture in its txd? https://i.paste.pics/KPIRD.png I'm using Blender.
-
I use the same source for all my .map files It means that all the .map files are all in one folder and one meta I understand your meaning that your script takes all map objects, both mapped and default. If so, how can I determine that your script only gets the folder that has all the .map files I mentioned above?
- 27 replies
-
- repository
- draw
-
(and 8 more)
Tagged with:
-
Hello, is there a way to remove fps drops? This resource is very useful But all players get FPS between 30 and 38 When I stop your resource, FPS increases significantly The fps limit of my server is 75
- 27 replies
-
- repository
- draw
-
(and 8 more)
Tagged with:
-
For the car lights, I don't know exactly what engine was used, I only know that the .fx file was used The road textures are also from the .fx file , jpg file is used to replace the road texture Using engineApplyShaderToWorldTexture
-
Please someone help
-
Hello friends, I use the following resource, which makes the light of the car show with better pixels dl_vehicles | Multi Theft Auto | Community But there is a problem That this light can only be seen on the game's default textures For example, in the photo below, I have changed the texture of the streets of the game, but the light of the car cannot be seen But the light of the car can be seen on the default texture of the street Is there a way to solve this problem, for example editing the fx file or anything that will solve the problem?
-
I Solved thanks for @Tails @AngelAlpha here is my code idx = {} newArray = {} createBlip(0,0,0,10,2,255,255,255) createBlip(100,100,100,10,2,255,255,255) createBlip(200,200,200,10,2,255,255,255) createBlip(400,400,400,1,2,255,255,255) createBlip(300,300,300,1,2,255,255,255) for k, v in ipairs(getElementsByType("blip")) do local id = getBlipIcon(v) table.insert(idx,{iconid1=id,element1=v}) end local function inArray(arr, elemesnt) for _, value in ipairs(arr) do if value.iconid == elemesnt then return true end end return false end local function removeDuplicates(arr,same) for i, elemesnt in ipairs(arr) do if not inArray(newArray, elemesnt.iconid1) then table.insert(newArray, {iconid=elemesnt.iconid1,element=elemesnt.element1}) end end end addCommandHandler("removedup",function() removeDuplicates(idx,10) setTimer(function() for _, elemesnt in ipairs(newArray) do outputChatBox(tostring(elemesnt.iconid)) --output is --10 --1 end end,2000,1) end)
-
Thanks for the help But it returns false Thanks for the help But this program destroys all blips with ID 10 I actually want to For example, if we have made 10 blips in the map And 5 of them have ID icon 10 and the other 5 have different ID icon. Our output will be as follows createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,2) createBlip(0,0,0,7) createBlip(0,0,0,5) createBlip(0,0,0,15) createBlip(0,0,0,26) for i,v in ipairs(getElementsByType("blips")) do local id = getBlipIcon(v) outputChatBox("ID Icon : "..id) end --output -- ID Icon : 10 -- ID Icon : 10 -- ID Icon : 10 -- ID Icon : 10 -- ID Icon : 10 -- ID Icon : 2 -- ID Icon : 7 -- ID Icon : 5 -- ID Icon : 15 -- ID Icon : 26 But I want the output to be as follows createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,10) createBlip(0,0,0,2) createBlip(0,0,0,7) createBlip(0,0,0,5) createBlip(0,0,0,15) createBlip(0,0,0,26) for i,v in ipairs(getElementsByType("blips")) do local id = getBlipIcon(v) outputChatBox("ID Icon : "..id) end --output -- ID Icon : 10 -- ID Icon : 2 -- ID Icon : 7 -- ID Icon : 5 -- ID Icon : 15 -- ID Icon : 26 The program removed blips with the same icon id !!!
-
hi guys I am trying to get all the blips using the following code for i,v in ipairs(getElementsByType("blips")) do -- todo end My problem is that I don't want to get repeated blips For example, if we make 2 blips with ID icon 10 using the 'createBlip' function, it will output this icon twice. createBlip(0,0,0,10) createBlip(1,1,1,10) for i,v in ipairs(getElementsByType("blips")) do local id = getBlipIcon(v) outputChatBox("ID Icon : "..id) --If these two blips are the only blips mad --It becomes our output . . . -- ID Icon : 10 -- ID Icon : 10 end I don't want it to receive blips with the same ID icon, that is, if we have 5 blips with ID icon 10, give us only one of the 5.
-
Yes they did say the ping server is pretty good and low. And this is true because I also checked the ping server on speedtest.net and it gave me ping 11 and that's good. But the problem is that the ping of all the players on the server is above 100 And this problem is only on MTA For example, in the Minecraft server, which was set up on the same virtual server, players get the appropriate ping between 20 and 30. But MTA is not like that!
-
No, this skin is the same as the skin game. However, this problem occurs even on replaced skins. No animation for shooting No one has encountered such a problem so far Yes, I reinstalled the game but the problem was not solved. The rest of the servers did not have the same problem
-
Hi, I set up an mta server on a virtual server, but all players ping over 100. I pinged my virtual server using the speed test site and the result was 11. And I also tested my own ping and got ping 8 What should I do, the firewall and antivirus server are also turned on. Virtual server information 16 GB RAM 4 CORE
-
Hello When I shoot, my skin looks like this And it is interesting that when I press Alt + Tab and enter the game screen again, there is no more news about this bug, but when I shoot it, it is found. https://pasteboard.co/foW5Ttj2Gikh.png -- Photo bug I really have no idea. My only concern is that this bug happened to all players and I hope this is a problem from my system, not the server. What do you think ?
-
Hello brother, I have a question, do you think it would be better if I use zip instead of folder? Of course, I know I have trouble editing the code, but it does not matter, if we do not consider this problem, zip is a better choice?
-
guys I want to do something that when "player1" hits "player2" car, give "player1" 3 Wanted Note : I mean the car A car is like a police car In the code, only the car that has ID 596 should be mentioned But I do not know how to implement it as code Please help me with this. Thanks
-
I was finally able to fix it Via getElementByID Thanks again for your help and attention, bro
-
I mean, I did not differentiate between configurations Police cars have "police" license plates, I'm sure about that And the only problem is that in the code I sent above, I tried to make it respond only to cars that have police license plates. But unfortunately, in addition to police cars, other cars also respawn
-
Yes, I confirm No
-
I got it, thank you Is it possible to make cars with police license plates respawn every 10 minutes? I wrote it, but the problem is that it respawn all the cars on the map for index, policecars in ipairs(getElementsByType("vehicle")) do local plate = getVehiclePlateText ( policecars ) if (plate) == "police" then toggleVehicleRespawn ( policecars, true ) setVehicleIdleRespawnDelay ( policecars, 100000000 ) -- 10 Min end end
-
thanks bro Worked ! Do you know where I can find the TXD file of gta models? Thanks for making a great software called Magic.TXD Thank you very much
-
Hello The_GTA I finally solved the previous problem Thanks so much for the tips Is it possible to show the blip only for a specified team? Like the code below But the problem is that the clip is not made at all Or if it happens, it is not visible to anyone function test() if getElementData(source,"vehdamyu") == false then setElementData(source,"vehdamyu",true) blipes = createBlipAttachedTo( source, 0, 2, 50, 50, 255, 255 ) --This setElementVisibleTo(blipes,getRootElement(),false) -- this setElementVisibleTo(blipes,getTeamFromName("Police"),true) -- This end end addEventHandler("onVehicleDamage", root, test)
-
Excuse me buddy my English is week And I use the translator most of the time Is it possible to code the steps that explain the video to me?
-
In the following code, the player executes 'setTimer' by pressing the E button ... setTimer(showvehexplodedordamaged,1000,1,thePlayer) ... And executes the following code The function of this code is to show damaged or exploded cars on the map function showvehexplodedordamaged (thePlayer) for i, v in ipairs(getElementsByType("vehicle")) do if getElementHealth(v) < 1000 then blips = createBlipAttachedTo( v, 0, 2, 50, 50, 255, 255 ) setElementVisibleTo(blips, getRootElement(), false) setElementVisibleTo(blips, thePlayer, true) end end end So far, our code is doing its job and there is no problem We said that this code shows damaged or exploded cars on the map But the problem is that if the damaged or exploded car is fixed, it still shows it on the map !!! How do I solve this problem?
-
Thankful Is there just a way to show the location of the cars that exploded on the map? (As a blip)