Bully-Board

Bully Modding Section => Script Modding => LUA Scripting Help => Topic started by: Ming on August 04, 2021, 05:00:00 PM

Title: Destroy car mod help
Post by: Ming 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:
Title: Re: Destroy car mod help
Post by: Hayley 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:
Title: Re: Destroy car mod help
Post by: Ming 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
Title: Re: Destroy car mod help
Post by: Hayley on August 06, 2021, 02:07:51 PM
No worries 👍