Skip to main content
Creates a new keyhanger and saves it to the database.
ArgumentData TypeNeededDefaultDescription
modelstring✅-The keyhanger model (key) defined in Config.KeyHangers
coordsvector3✅-The coordinates where the keyhanger will be placed
rotationvector3❌vector3(0.0, 0.0, 0.0)The rotation of the keyhanger
fromItemboolean❌falseIf true the keyhanger can be picked up by players and given back as an item
TypeDescription
booleantrue if the keyhanger has been created, false otherwise
number | stringThe id of the created keyhanger, or the error message if the keyhanger has not been created (Invalid keyhanger data if the model does not exist)