NPC problems after 4 hours

I have NPC vehicles set to 0.1 so that they spawn. The problem is that the database fills up at 60,386 ms. Why do I get micro lags after 4 hours? Can someone help me how to get rid of this? Why are there so many lags and FPS drops? How can I tell that the NPC vehicles don’t have a trunk or glove compartment? Maybe that’s the problem. Because we players have them so we can work. I would be very grateful if someone could help me. the ms are several displays times 60,000 times 35,000 ms etc.

1 Like

They don’t inventory scripts create gloveboxes on registered car into a table that stores them. Such as player_vehicles or register_vehicles depends on your tables and scripts you use as some scripts create a new table. NPC cars should not be creating database entries if they are something is wrong. If I store item in a npc car it will just not go anywhere since its not registered car. If its destroyed, dv, or server restart.

I would recommend turning down your npc cars. With things like custom ymaps. cars, and textures its going be alot loading in will cause issues as theirs a lot trying be loaded in. I would If a custom ymap ihas terrible ai pathing and traffic backs up its going cause lag. I would start by turning down your settings for ai density.