SA-MP Forums Archive
NPC's ID - 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's ID (/showthread.php?tid=637515)



NPC's ID - Hunud - 16.07.2017

Hi,

I rarly saw that, there is no way for ID change of NPC's so i want be sure that correct. I have x50 slots on server and i want to set their NPC's ID to 500 , 501, is that possible ?


Re: NPC's ID - tungki - 16.07.2017

i think it's impossible unless you got 500 player in your server and then join all the npc to the server which will make their id 500+ but yeah it's kinda difficult

Quote:
Originally Posted by Joe Staff
Посмотреть сообщение
At OnGameModeInit, you can connect 50 'blank' NPCs, then connect your NPCs, then kick off the 'blank' NPCs



Re: NPC's ID - Paulice - 16.07.2017

It is not possible unless you have 551 slots set in the server's configuration file (connect 500 dummy NPCs then connect the NPCs to keep, and lastly, disconnect the dummy NPCs).


Re: NPC's ID - Spmn - 16.07.2017

Don't listen to these guys. It's doable.
If you use FCNPC, edit this function to suit your needs: https://github.com/ziggi/FCNPC/blob/...ctions.cpp#L85

If you use normal NPCs, then it's impossible without reversing and patching SA-MP executable.


Re: NPC's ID - Paulice - 16.07.2017

Quote:
Originally Posted by Spmn
Посмотреть сообщение
Don't listen to these guys. It's doable.
If you use FCNPC, edit this function to suit your needs: https://github.com/ziggi/FCNPC/blob/...ctions.cpp#L85

If you use normal NPCs, then it's impossible without reversing and patching SA-MP executable.
I didn't know FCNPC had that ability, thanks for pointing that out