Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/12/21 in all areas

  1. Get yourself an idea how to solve the problem by these posts: https://forum.multitheftauto.com/topic/132891-important-helprespawn-vehicle/?do=findComment&comment=1004223 https://forum.multitheftauto.com/topic/132891-important-helprespawn-vehicle/?do=findComment&comment=1004224 Fixing a vehicle involves a call to fixVehicle or any other combination of vehicle state resetting functions. Consult the wiki for details on how to fix a vehicle and then combine the fixing of a vehicle with the things I suggested you earlier. If English is not a language you can understand then please feel free to switch to a language section that fits you best. While the reply speed may not be as fast as me, I am pretty sure that we have competent people who can support you natively because the boards would not exist in the first place if it were not true.
    1 point
  2. stop the blip timer once the vehicle is fixed so it does not trigger clean up any blip that was created for the vehicle
    1 point
  3. Hi, I'll be moving this to the scripting section so other people that are looking for a solution might be able to find it more easily.
    1 point
  4. Hello amirmahdi, I assume that every player can have a blip attached to it which is stored in the "jobs:police" element data slot of the player element. I can see that it is a server-side script because you are using the setElementVisibleTo function. By "gone" you mean that the player has left the server, right? For any kind of "gone" relationship where an element is being destroyed and you have to clean up any associated that with the to-be-destroyed element, you should use the "onElementDestroy" server-side event handler. For example, you can clean up the blip like this: addEventHandler("onElementDestroy", root, function() if (getElementType(source) == "player") then local wanted_blip = getElementData(source, "jobs:police"); if (wanted_blip) then destroyElement(wanted_blip); removeElementData(source, "jobs:police"); end end end ); Please make sure that you are not creating a second blip and overwritting the "jobs:police" element data with the element still present in your code. After all, you are not checking whether "jobs:police" element data is already set with a blip before creating and assigning a new one. Doing this the wrong way would create multiple blips that overlap the original one and you would not be able to easily destroy these extra and unnecessary ones. Good luck! ?
    1 point
  5. So I've been inactive for some years, I'm currently catching up with learning what kinds of breakthroughs have been happening for MTA. This project has absolutely remarkable potential! I will be keeping tabs on this.
    1 point
  6. Ban appeal denied, this ban will never be removed (as we told you before) @Nosferatu
    1 point
×
×
  • Create New...