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


Author Topic: CarGetDamageNumber() not work on AE  (Read 1018 times)

0 Members and 1 Guest are viewing this topic.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
CarGetDamageNumber() not work on AE
« on: March 11, 2022, 11:36:15 PM »
Is CarGetDamageNumber() not work on AE ?
Maybe cars of AE can't be damaged, it is a smash car mission in SE, but not AE

Offline RBS ID

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • I don't know.
    • View Profile
    • This is website title.
Re: CarGetDamageNumber() not work on AE
« Reply #1 on: March 12, 2022, 02:01:25 AM »
It work too on AE. Here's the example script I made to test. The function return numbers.
Code: [Select]

function main()
while not SystemIsReady() do
Wait(0)
end
Wait(3000)
local X, Y, Z = PlayerGetPosXYZ()
local myVeh = VehicleCreateXYZ(math.random(292, 294), X + 3, Y + 3, Z)
X, Y, Z = nil, nil, nil
local showText = false
while true do
Wait(0)
if IsButtonBeingPressed(3, 0) then
showText = not showText
end
if showText then
MinigameSetAnnouncement(tostring(CarGetDamageNumber(myVeh)), true)
--MinigameSetAnnouncement(type(_G.CarGetDamageNumber), true) -- "function"
end
end
end


Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: CarGetDamageNumber() not work on AE
« Reply #2 on: March 12, 2022, 05:34:24 AM »
Thanks, I try CarGetDamageNumber() again