Problem with networked script host in FIVEM

I am currently using

resource_manifest_version ‘05cfa83c-a124-4cfa-a768-c24a5811d8f9’

The networked entity with last 2 parameters true true can only be spawned on script host side (i.e.
NETWORK_IS_HOST_OF_THIS_SCRIPT is true).
I found that the script host always changing to a newly connected player. When the script host changed, the networked entity on the previous script host will then suddenly disappear.
Is there any way to fix the script host, not allowing it to change unless the current script host is disconnected?

2 Likes