Revision Difference
Global.Model#514884
<function name="Model" parent="Global" type="libraryfunc">⤶
<description>Runs <page>util.PrecacheModel</page> and returns the string</description>⤶
<realm>Shared and Menu</realm>⤶
<file line="131-L134">lua/includes/util.lua</file>⤶
<args>⤶
<arg name="model" type="string">The model to precache</arg>⤶
</args>⤶
<rets>⤶
<ret name="" type="string">The same string entered as an argument</ret>⤶
</rets>⤶
</function>⤶
⤶
<example>⤶
<description>From entities/gmod_cameraprop.lua</description>⤶
<code>⤶
local CAMERA_MODEL = Model( "models/dav0r/camera.mdl" )⤶
function ENT:Initialize()⤶
self:SetModel( CAMERA_MODEL )⤶
...⤶
</code>⤶
⤶
</example>