News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Destroy car mod help  (Read 333 times)

0 Members and 1 Guest are viewing this topic.

Online Ming

  • Jr. Member
  • **
  • Posts: 36
  • Gender: Male
  • yee yep ass haircut
    • View Profile
Destroy car mod help
« on: August 04, 2021, 05:00:00 PM »
Code: [Select]
code]DestroyCar = function()
 while true do
  for Ming, Car in {VehicleFindInAreaXYZ(0, 0, 0, 99999)} do
   if CarGetDamageNumber(Car) > 100 and VehicleIsValid(Car) then
    local X, Y, Z = VehicleGetPosXYZ(Car)
local Effect1 = EffectCreate("CarDestroyed", X, Y, Z)
local Effect2 = EffectCreate("GymFire", X, Y, Z)
VehicleDelete(Car)
EffectSlowKill(Effect1, 0.6)
EffectSlowKill(Effect2, 3)
   end
  end
  Wait(0)
 end
end
What is the mistake of the function ? :hmm:
Can someone please help :biggrin:

Offline Hayley

  • \_(ツ)_/
  • Global Moderator
  • I Live Here
  • *****
  • Posts: 16,646
    • View Profile
Re: Destroy car mod help
« Reply #1 on: August 05, 2021, 04:28:53 PM »
Heyo, you've already made a topic asking about this so I removed the old one~
Please try not to make multiple topics about the same thing. Someone will get to you eventually :sleep:
« Last Edit: August 05, 2021, 04:32:09 PM by Hayley »

Online Ming

  • Jr. Member
  • **
  • Posts: 36
  • Gender: Male
  • yee yep ass haircut
    • View Profile
Re: Destroy car mod help
« Reply #2 on: August 06, 2021, 01:35:47 AM »
Heyo, you've already made a topic asking about this so I removed the old one~
Please try not to make multiple topics about the same thing. Someone will get to you eventually :sleep:
Oops, sorry

Offline Hayley

  • \_(ツ)_/
  • Global Moderator
  • I Live Here
  • *****
  • Posts: 16,646
    • View Profile
Re: Destroy car mod help
« Reply #3 on: August 06, 2021, 02:07:51 PM »
No worries 👍