View Single Post
Old 09-26-2012   #1
Registered User
Newbie Member
Join Date: Sep 2012
Posts: 1
rodstrom is an unknown quantity at this point
Trying to check if Ped is criminal, how?

I'm making some scripts and I am in trouble. I want to check if a ped is a criminal, hooker or whatever.
I have been trying with
if (ped.PedType == PedType.Criminal)
if (ped.PedType.HasFlag(PedFlag.criminal))
But none of them works, can someone point me in the right direction here?
If I want to check for cops, that works with this method "ped.PedType == PedType.Cop", but for criminals, it doesn't.
rodstrom is offline   Reply With Quote