GetBirdsEnabled

From Multi Theft Auto: Wiki
Revision as of 21:05, 24 July 2013 by Emiliano Castro (talk | contribs) (In Server side return false.)
Jump to navigation Jump to search

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

Syntax

bool getBirdsEnabled ()

Returns

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

Example

This example outputs the Birds state.

Click to collapse [-]
Client
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".

Requirements

Minimum supported server 1.3
Minimum supported client 1.3

Note: Using this function/event requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.3" client="1.3" />

See Also

BETA: FROM VERSION 1.5.8 r20675 ONWARDS
BETA: FROM VERSION 1.5.8 r20718 ONWARDS
BETA: FROM VERSION 1.5.8 r20718 ONWARDS