GetJetpackWeaponEnabled

From Multi Theft Auto: Wiki
Revision as of 19:43, 10 July 2012 by Jaysds (talk | contribs) (Created page with "__NOTOC__ {{Server function}} This function sets a weapon usable while using the Jetpack. ==Syntax== <syntaxhighlight lang="lua">bool getJetpackWeaponEnabled(string weapon)</syntaxhighlight> ===Requi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function sets a weapon usable while using the Jetpack.

Syntax

bool getJetpackWeaponEnabled(string weapon)

Required Arguments

  • weapon The weapon that's being checked if it's usable on a Jetpack.

Returns

Returns true if the weapon is enabled, else false if the weapon isn't or invalid arguments are passed.

Example

addCommandHandler("isJPEnabled",function(ped,_,wep)
	if ped then
		outputChatBox(tostring(getJetpackWeaponEnabled(wep)),ped)
	end
end)

Requirements

This template will be deleted.

See Also