Crash in the zone of AutoExotics after doing a fixtextures

What is the issue you’re having?

After doing a /fixtextures

local radius = 50.0
local handle, vehicle = FindFirstVehicle()
local success
repeat
if DoesEntityExist(vehicle) then
local vehicleCoords = GetEntityCoords(vehicle)
if #(vehicleCoords - coords) <= radius then
local vehicleData = {
handle = vehicle,
coords = vehicleCoords + vector3(0.0, 0.0, 2.0), – Levantamos el vehículo un poco
heading = GetEntityHeading(vehicle)
}
table.insert(vehicles, vehicleData)
end
end
success, vehicle = FindNextVehicle(handle)
until not success
EndFindVehicle(handle)

handle, ped = FindFirstPed()
success = true
repeat
    if DoesEntityExist(ped) and not IsPedAPlayer(ped) then 
        local pedCoords = GetEntityCoords(ped)
        if #(pedCoords - coords) <= radius then
            local pedData = {
                handle = ped,
                coords = pedCoords,
                heading = GetEntityHeading(ped)
            }
            table.insert(peds, pedData)
        end
    end
    success, ped = FindNextPed(handle)
until not success
EndFindPed(handle)

local farAwayCoords = vector3(10000.0, 10000.0, 1000.0) 
SetEntityCoordsNoOffset(playerPed, farAwayCoords.x, farAwayCoords.y, farAwayCoords.z, false, false, false)

Wait(5000)

SetEntityCoordsNoOffset(playerPed, coords.x, coords.y, coords.z, false, false, false)

for _, vehicleData in pairs(vehicles) do
    if DoesEntityExist(vehicleData.handle) then
        -- Colocamos el vehículo un poco más alto para evitar que se hunda
        SetEntityCoordsNoOffset(vehicleData.handle, vehicleData.coords.x, vehicleData.coords.y, vehicleData.coords.z + 1.5, false, false, false)
        SetEntityHeading(vehicleData.handle, vehicleData.heading)

        -- Esperamos para asegurarnos de que el terreno ha cargado correctamente
        Wait(500)

        -- Bajamos el vehículo lentamente para evitar problemas con colisiones
        for i = 1, 5 do
            SetEntityCoordsNoOffset(vehicleData.handle, vehicleData.coords.x, vehicleData.coords.y, vehicleData.coords.z + (1.5 - (i * 0.3)), false, false, false)
            Wait(100)
        end

        SetVehicleOnGroundProperly(vehicleData.handle)
        SetEntityAsNoLongerNeeded(vehicleData.handle)
    end
end

for _, pedData in pairs(peds) do
    if DoesEntityExist(pedData.handle) then
        SetEntityCoordsNoOffset(pedData.handle, pedData.coords.x, pedData.coords.y, pedData.coords.z, false, false, false)
        SetEntityHeading(pedData.handle, pedData.heading)
        SetEntityAsNoLongerNeeded(pedData.handle)
    end
end

In other places there is no problem just in that zone.

What have you tried already to fix the issue?

Everything

What server did you get this issue on?

Mine

Windows version

Windows 11 Pro 64 bits 10.0 C 26100

System specifications

No need.

Antivirus software

Windows Defender

CitizenFX crash zip file (‘Save information’ on a crash)

CfxCrashDump_2025_02_03_04_10_25.zip (1.77 MB)

Log files

CitizenFX_log_2025-02-03T040413.log (1.22 MB)

Additional comments

Im getting crazy with this crash, south-oregon-charlie

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Fixed

Still crashing