Is Native: IsPedInvincible exisit?

I’m looking for the way of checking the entity is invincible or not.
I saw the SetEntityInvincible description write this native.
But, It always return a nil value.

https://runtime.fivem.net/doc/natives/?_0x3882114BDE571AD4

0x3882114BDE571AD4 0xC1213A21
-- SET_ENTITY_INVINCIBLE
SetEntityInvincible(
	entity --[[ Entity ]], 
	toggle --[[ boolean ]]
)

 Use this if you want to get the invincibility status:  
     bool IsPedInvincible(Ped ped)  
     {

This is the code I used for print(IsPedInvincible)

Citizen.CreateThread(function()
    RequestModel(GetHashKey("s_f_y_cop_01"))
    while not HasModelLoaded(GetHashKey("s_f_y_cop_01")) do
        Wait(1)
    end
	local npc = CreatePed(1, GetHashKey("s_f_y_cop_01"), -1038.58, -1396.94, 4.55, 73.55, false, false)	
	FreezeEntityPosition(npc, true)	
	SetEntityHeading(npc, 73.55)
	SetEntityInvincible(npc, true)
	SetBlockingOfNonTemporaryEvents(npc, true)
	SetPedCanPlayAmbientAnims(npc, true)
	print(IsPedInvincible(npc))
end)

The fx_version is:
fx_version 'adamant'

Use https://runtime.fivem.net/doc/natives/?_0xB721981B2B939E07

Thank you.

But, I need the “AI Ped” invincible status to make a distinction between normal ai ped and my own coded ped.

Then I saw some other native could solve my issue. :sweat_smile:

-- 0xAD738C3085FE7E11 0x5D1F9E0F
-- SET_ENTITY_AS_MISSION_ENTITY
SetEntityAsMissionEntity(
	entity --[[ Entity ]], 
	p1 --[[ boolean ]], 
	p2 --[[ boolean ]]
)
-- 0x0A7B270912999B3C 0x2632E124
-- IS_ENTITY_A_MISSION_ENTITY
local retval --[[ boolean ]] =
	IsEntityAMissionEntity(
		entity --[[ Entity ]]
	)