GetDoorModel: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Gets the model of a door. It's the same number that was passed to CreateDoor.}} {{FuncSyntax|GetDoorModel(door)}} {{FuncP...")
 
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local modelId = GetDoorModel(doorId)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:DoorFunctions}}

Latest revision as of 13:08, 25 November 2019

GetDoorModel

Type: Function
Context: Server
Introduced: v1.0

Description

Gets the model of a door. It's the same number that was passed to CreateDoor.

Syntax

GetDoorModel(door)

Parameters

  • door
    The door identifier.

Return Value

  • Returns the model of a door.

Example

local modelId = GetDoorModel(doorId)

See also