setBirdsEnabled | Multi Theft Auto: Wiki Skip to content

setBirdsEnabled

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 allows you to disable the flying birds.

Syntax

bool setBirdsEnabled ( bool enable )
Required Arguments
  • enable: MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if the birds state was changed succesfully, false if an invalid argument was specified.

Code Examples

shared
function setBirdsState()
setBirdsEnabled(not getBirdsEnabled()) -- Disable the Birds if they're enabled, either Enable them.
outputChatBox("The birds are now ".. (getBirdsEnabled() and "Enabled" or "Disabled") ..".") -- Output the new Birds state.
end
addCommandHandler("birds",setBirdsState) -- Add the command handler attached to the function "setBirdsState".

See Also

World Functions