- Documentation
- Server functions
- getOriginalWeaponProperty
Function
getOriginalWeaponProperty
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")