TanguyOrtegat / esx_jb_eden_garage2

41 stars 50 forks source link

Fix a for loop in main.lua #85

Closed iTzCrutchie closed 4 years ago

iTzCrutchie commented 4 years ago

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.

turbosaab commented 4 years ago
    for id = 1, 9 do
        local windowId = IsVehicleWindowIntact(vehicle, id)

That's what's missing - 9

iTzCrutchie commented 4 years ago
    for id = 1, 9 do
        local windowId = IsVehicleWindowIntact(vehicle, id)

That's what's missing - 9

Fixed

TanguyOrtegat commented 4 years ago

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