Hey 
There is a very very good post about a native doorlocking system :
If you want the door opening by herself you can use the following Natives :
-- To get the door/you might get it another way if you use part of the method in the post I linked above
GetClosestObjectOfType()
-- To rotate the door
SetEntityRotation()