GetBirdsEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (In Server side return false.)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Client function}}
This function will tell you if the birds are enabled or disabled.  
This function will tell you if the birds are enabled or disabled.  



Revision as of 21:05, 24 July 2013

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

This template will be deleted.

See Also