Jump to content

HunT

Retired Staff
  • Posts

    1,387
  • Joined

  • Last visited

About HunT

  • Birthday 18/07/1991

Member Title

  • Retired Staff

Details

  • Gang
    PRO|Race
  • Location
    Italia
  • Occupation
    Scripter, 3D modeler
  • Interests
    Music - Games - Scripting

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

HunT's Achievements

Lil' G

Lil' G (37/54)

33

Reputation

  1. The truth, I had abandoned this project and did not have the opportunity to try your script. But today out of curiosity I asked chatGPT to write me the script and this is the result local vehicleTimers = {} -- Memorizza i timer dei veicoli -- Funzione per controllare se il veicolo è in aria function checkVehicleAir(vehicle) if not isElement(vehicle) then return end if isVehicleOnGround(vehicle) then resetExplosionTimer(vehicle) else startExplosionTimer(vehicle) end end -- Avvia il timer di esplosione function startExplosionTimer(vehicle) if vehicleTimers[vehicle] then return end -- Evita più timer sullo stesso veicolo vehicleTimers[vehicle] = setTimer(function() if isElement(vehicle) and not isVehicleOnGround(vehicle) then blowVehicle(vehicle) -- Esplode il veicolo! vehicleTimers[vehicle] = nil end end, 5000, 1) -- 5 secondi di tempo end -- Resetta il timer se il veicolo tocca il suolo function resetExplosionTimer(vehicle) if vehicleTimers[vehicle] then killTimer(vehicleTimers[vehicle]) -- Ferma il timer vehicleTimers[vehicle] = nil end end -- Controlla lo stato dei veicoli in un loop function monitorVehicles() for _, vehicle in ipairs(getElementsByType("vehicle")) do if getVehicleController(vehicle) then -- Controlla solo i veicoli con giocatori dentro checkVehicleAir(vehicle) end end end setTimer(monitorVehicles, 1000, 0) -- Controlla ogni secondo -- Quando un veicolo esplode, rimuove il timer associato addEventHandler("onVehicleExplode", root, function() vehicleTimers[source] = nil end) chatGPT can write all kinds of functions, it's amazing
  2. A thousand thanks. I will try this script
  3. Hi guys. After a loooooong time I decided to do a rework on one of my map but I need a particular script. I have so forgotten anything related to scripting after 10 years and I don't know if there is any event or function related to this yet. I need help creating a script when a certain vehicle stops touching an object after 5 seconds I have the ability to start a function. Such as destroying the vehicle after 5 seconds if it does not touch an object with its wheels. If anyone helps me I will add credits for the script when I release the map. Thanks for the support
  4. HunT

    discord

    ? Guarda che cé il post del discord sopra con tanto di berlusconi.
  5. https://www.mediafire.com/file/2gel9mo90xcxo3j/Bank_System_Incomplete.zip/file But is incomplete and not compatible with default or other gamemodes U can edit it if u want. Good luck.
  6. Good job. The other player listen default sound or custom sound? Its 3D sound or client sound? P.S. i have no download the resource, just asking.
  7. Like this : https://community.multitheftauto.com/index.php?p=resources&s=details&id=5645 But you need edit the model.
  8. Unfortunately, my job is killing me and I do not have much time lately. Thanks for the comment.
  9. Bit upgrade. Of Couse. But i want finish first with some details.
  10. I have already split some projects for dont have lag relax. After finish this base i split on 10 objects.
  11. Original Images : Current Project (really alpha) :
  12. https://discord.me/mtasaitalia
  13. Deve avere il tag MTAsa Italia. Se vedono il tag di un clan non vengono. Cioé tipo discord.gg/mtasaitalia
  14. Crear un gruppo discord di mtasa italia per iniziare. Poi faccio il post principale per far venire la gente.
×
×
  • Create New...