How can i check if entity valid?

How can i check if entity valid?

I found it:
IsAnEntity(entity)

Sorry on this post

That just checks if it is an entity. You might be better off using DoesEntityExist

https://runtime.fivem.net/doc/reference.html#_0x7239B21A38F536BA

That right
I have to use this: DoesEntityExist and not this: IsAnEntity
Thanks you