AttachPlayerParachute: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 13: Line 13:
== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
-- code
AddCommand("parachute", function(player)
    AttachPlayerParachute(player, true)
end)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ServerPlayerFunctions}}
{{ServerPlayerFunctions}}

Latest revision as of 12:42, 28 May 2021

AttachPlayerParachute

Type: Function
Context: Server
Introduced: v1.0

Description

Attach the specified player a parachute.

Syntax

AttachPlayerParachute(player, bAttach)

Parameters

  • player
    The player identifier.
  • bAttach
    The boolean status.

Return Value

  • This function returns true on success.

Example

AddCommand("parachute", function(player)
    AttachPlayerParachute(player, true)
end)

See also