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