ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getOriginalWeaponProperty

Function

getOriginalWeaponProperty

ServerWeaponsIdentical to MTA:SA

Returns a weapon's factory property. The factory data lives in the game files, so it always returns false. Use getWeaponProperty for properties set on the server.

Syntax

bool getOriginalWeaponProperty(int weaponID, string weaponSkill, string property)

Arguments

weaponIDint
Weapon ID.
weaponSkillstring
Skill level.
propertystring
Property name.

Returns

Always false.

Example

local value = getWeaponProperty(31, "pro", "damage") or getOriginalWeaponProperty(31, "pro", "damage")

See also