SA-MP Forums Archive
Npc driver is lagging - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Npc driver is lagging (/showthread.php?tid=677880)



Npc driver is lagging - xRadical3 - 02.08.2020

Why are npc drivers so lagging when they ride?
For example, they suddenly go into the water and then return to the road, or sometimes hit walls and something...
Does anyone have experience? Is there a way to fix it?
I use normal npc script.


Re: Npc driver is lagging - xRadical3 - 04.08.2020

bump...
Will this be resolved if I use FCNPC plugin?


Re: Npc driver is lagging - coool - 04.08.2020

Does it happen on local server or hosted?
Does it happen also with NPC scripts bundled with server installation?


Re: Npc driver is lagging - xRadical3 - 04.08.2020

Quote:
Originally Posted by coool
View Post
Does it happen on local server or hosted?
Does it happen also with NPC scripts bundled with server installation?
Both, localserver and hosted.
I just have a NPC script.


Re: Npc driver is lagging - coool - 04.08.2020

does it happen with NPC scripts already in npcmodes folder like at400_ls at400_lv
maybe try rerecording the NPC.


Re: Npc driver is lagging - NaS - 04.08.2020

If you are laggy while recording, it will appear in the recording as well.
For the best results, record in an otherwise empty local server.


Re: Npc driver is lagging - xRadical3 - 08.08.2020

Sorry for reply after 4 days.
I record again in a empty local server but still same, with do this I feel that the lag has decreased a bit.
Another solution?

Quote:
Originally Posted by coool
View Post
does it happen with NPC scripts already in npcmodes folder like at400_ls at400_lv
maybe try rerecording the NPC.
I tested at400_lv.rec but not have lags...


Re: Npc driver is lagging - xRadical3 - 10.08.2020

Bump...


Re: Npc driver is lagging - coool - 10.08.2020

maybe check for resources usage like cpu, ram etc?
try recording again after a reboot.