GetJetpackWeaponEnabled: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→See Also) |
||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''weapon''' The weapon that's being checked if it's usable on a Jetpack. | *'''weapon:''' The weapon that's being checked if it's usable on a Jetpack. | ||
===Returns=== | ===Returns=== | ||
Line 21: | Line 21: | ||
{{Requirements|1.3.1|n/a|}} | {{Requirements|1.3.1|n/a|}} | ||
==See Also== | ==See Also== | ||
{{World_functions}} | {{World_functions|server}} |
Revision as of 22:38, 6 September 2024
This function checks if a weapon is usable while on a 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
- getJetpackWeaponEnabled
- setJetpackWeaponEnabled
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel