Go Back   GTAGaming Forums > Grand Theft Auto Mods > Grand Theft Auto IV Mods
Register FAQ Members List Calendar Mark Forums Read

Thread Tools Display Modes
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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 07:34 AM.