![]() |
|
[Pawn] omp_npc not working - Printable Version +- open.mp forum (https://forum.open.mp) +-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) +--- Thread: [Pawn] omp_npc not working (/showthread.php?tid=4299) |
omp_npc not working - MauroRisi - 2026-06-20 I can create and spawn NPC, but they dont move, and make weird teleportations when assigned to a path. RE: omp_npc not working - XxASxX - 2026-09-30 I'm having the same problem! RE: omp_npc not working - XxASxX - 2026-10-03 I managed to solve it. In my case, migrating from the old `samp-npc` / `ConnectNPC()` system to the native open.mp NPC API was only part of the fix. I tested the same `.rec` file on a clean open.mp server and it worked, so the issue lay within my gamemode. Certain callbacks and global player systems were also processing the NPCs and interfering with the vehicle or playback state. What worked was: - using the native open.mp NPC system; - ignoring NPCs in standard player systems using `IsPlayerNPC()`; - creating the vehicle first, spawning the NPC, placing them in the vehicle, confirming the action, and only then starting the recording. If it works in a clean gamemode but not in your main one, it is worth checking if another system is altering the NPC's or vehicle's state. |