Kucikuc24 Posted October 31, 2010 Share Posted October 31, 2010 hi pls i cleaned up this NATIVE for lock/unlock doors: static void SetStateOfClosestDoorOfType(u32 DoorModel, f32 x, f32 y, f32 z, i32 unknownTrue, f32 unknown0) { NativeInvoke::Invoke<NATIVE_SET_STATE_OF_CLOSEST_DOOR_OF_TYPE, ScriptVoid>(DoorModel, x, y, z, unknownTrue, unknown0); } Now, problem is, how to use it. Do you have some idea ? What with DoorModel ? What with X, Y, Z ? Link to comment https://gtaforums.com/topic/462185-locking-and-unlocking-doors/ Share on other sites More sharing options...
Kucikuc24 Posted November 1, 2010 Author Share Posted November 1, 2010 *BUMP* Link to comment https://gtaforums.com/topic/462185-locking-and-unlocking-doors/#findComment-1060185748 Share on other sites More sharing options...
sjaak327 Posted November 1, 2010 Share Posted November 1, 2010 You would be amazed how much information Google (or Bing) would turn up if you actually used them: http://www.gtaforums.com/index.php?showtopic=390564&st=0 Read this thread and that native has no more secrets. Link to comment https://gtaforums.com/topic/462185-locking-and-unlocking-doors/#findComment-1060185761 Share on other sites More sharing options...
Kucikuc24 Posted November 1, 2010 Author Share Posted November 1, 2010 oh thanks but i have still problem, my script wont lock prison doors my code: f32 x,y,z; GetCharCoordinates(GetPlayerPed(), &x,&y,&z); SetStateOfClosestDoorOfType(0x2639ABCC, x, y, z, 0, 0.0f); probably, i dont have valid HashModel Link to comment https://gtaforums.com/topic/462185-locking-and-unlocking-doors/#findComment-1060185885 Share on other sites More sharing options...
sjaak327 Posted November 1, 2010 Share Posted November 1, 2010 You need to have the exact coordinates, read the whole thread ! Link to comment https://gtaforums.com/topic/462185-locking-and-unlocking-doors/#findComment-1060185920 Share on other sites More sharing options...
Kucikuc24 Posted November 1, 2010 Author Share Posted November 1, 2010 i need to lock up this doors: ->CLICK<- pls help me with this Link to comment https://gtaforums.com/topic/462185-locking-and-unlocking-doors/#findComment-1060185933 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