getBirdsEnabled | Multi Theft Auto: Wiki Skip to content

getBirdsEnabled

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function will tell you if the birds are enabled or disabled.

Syntax

bool getBirdsEnabled ( )

Returns

  • bool: value

Returns true if the birds are enabled or false if the birds are disabled.

Code Examples

shared
function areBirdsEnabled()
outputChatBox("The birds are currently ".. (getBirdsEnabled() and "Enabled" or "Disabled") ..".") -- Output the birds state.
end
addCommandHandler("birds", areBirdsEnabled) -- Add the command handler attached to the function "areBirdsEnabled".

See Also

World Functions