GetWeaponOwner

From Multi Theft Auto: Wiki
Revision as of 18:04, 23 December 2014 by AlexTMjugador (talk | contribs) (Added more explanatory text)
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function GetWeaponOwner needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function gets the owner of a custom weapon. Weapon ownership system was, however, disabled, so this function always returns false. Please refer to setWeaponOwner for details.

Syntax

boolean getWeaponOwner ( weapon theWeapon )

OOP Syntax Help! I don't understand this!

Note: Pair is completely disabled at the moment (its value is nil).
Method: weapon:getOwner(...)
Variable: .owner
Counterpart: setWeaponOwner


Required Arguments

  • theWeapon: The weapon to get the owner of.

Returns

This function was intended to return the player which owns the custom weapon, and false if an error occured. However, at the moment it always returns false.

Example

--TODO

Requirements

Minimum server version n/a
Minimum client version 1.3.0-9.04555

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04555" />

See also