Closed iTzCrutchie closed 4 years ago
for id = 1, 9 do
local windowId = IsVehicleWindowIntact(vehicle, id)
That's what's missing - 9
for id = 1, 9 do local windowId = IsVehicleWindowIntact(vehicle, id)
That's what's missing - 9
Fixed
For loop missing the extra variable. Though I haven't used ESX in a while I am assuming there are only 4 windows for each door. Though I also adjusted it to meet the fivem native of window ids which start at 0 and go to 3 to indicate each window on the doors.
If this is wrong or the ids are wrong then i can correct them.
oh yea havent seen that :) i go up to 9 for cars that might have more then 3 windows
For loop missing the extra variable. Though I haven't used ESX in a while I am assuming there are only 4 windows for each door. Though I also adjusted it to meet the fivem native of window ids which start at 0 and go to 3 to indicate each window on the doors.
If this is wrong or the ids are wrong then i can correct them.