Hi all,

Just a quick question. I’m trying to use the SetPedAiBlip method, but it only prints “attempt to call nil value”.

Here’s a list of everything I tried:

SetPedAiBlip(entity, false) -- doesn't work, nil value
print(DoesPedHaveAiBlip(entity)) -- PRINTS FALSE
Citizen.InvokeNative(0xD30C50DF888D58B5, entity) -- doesn't work
Citizen.InvokeNative(0xD30C50DF888D58B5, Citizen.PointerValueIntInitialized(entity), false) -- doesn't work
Citizen.InvokeNative(0x96C4C4DD, entity) -- doesn't work
Citizen.InvokeNative(0xB13DCB4C6FAAD238 , entity, true, -1) -- doesn't work

All of them, except for the one that returns the error, just do nothing. (obviously the blips don’t appear while fighting the NPCs)

Is the native renamed/broken or am I doing something wrong here?

Any information would be greatly appreciated.

UPDATE:

So I updated the resource manifest, and I no longer get the error printout.

Unfortunately I still don’t get any blips during combat. The NPCs and players are in custom relationship groups that hate each other. Beyond that I’m not sure what the problem can be.

DoesPedHaveAiBlip returns 1 so the native definitely works now, but I don’t see any blips.

Are you using the latest resource manifest?

Are we talking about the top-most line of the __resource.lua file?

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'

If so, where can I find the right numbers to use?

Should show the last version, below on the page you can find all

1 Like

So I updated the resource manifest, and I no longer get the error printout.

Unfortunately I still don’t get any blips during combat. The NPCs and players are in custom relationship groups that hate each other. Beyond that I’m not sure what the problem can be.

DoesPedHaveAiBlip returns 1 so the native definitely works now, but I don’t see any blips.