GTAGaming Forums

GTAGaming Forums (http://www.gtagaming.com/forums/index.php)
-   Grand Theft Auto IV Mods (http://www.gtagaming.com/forums/forumdisplay.php?f=318)
-   -   Trying to check if Ped is criminal, how? (http://www.gtagaming.com/forums/showthread.php?t=134751)

rodstrom 09-26-2012 05:04 PM

Trying to check if Ped is criminal, how?
 
Hello,
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)
and
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.
Thanks


All times are GMT -6. The time now is 03:57 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.