Anderson2005 Posted September 23, 2009 Share Posted September 23, 2009 What are the correct parameters for this cmd I've tried many and all seem to just crash the game. Right now I am using: ePedType type; GetClosestChar(x, y, z, 10.0, true, true, &b); GetPedType(b, &type ); But it crashed =\ tried a few other ways but.. Link to comment Share on other sites More sharing options...
ceedj Posted September 23, 2009 Share Posted September 23, 2009 (edited) That seems right, but is ePedType defined? It's not in my version of the hook, so I'd create a similar function in your Scripting.h, substituting a u32 in places of the enum (since the enum is empty). According to aru, you can change it right in the original Scripting.h, but I don't like to do that in case I make a mistake; I still have the original for reference. static void GetPedTypeA(Ped ped, u32 *pType) { NativeInvoke::Invoke<scriptVoid>("GET_PED_TYPE", ped, pType); } EDIT: Also, I might try to do this with an actor you create first, just to make sure it's working right, before trying to do it with "closest char". Edited September 23, 2009 by ceedj I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets Link to comment Share on other sites More sharing options...
Anderson2005 Posted September 23, 2009 Author Share Posted September 23, 2009 cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now