httpClear | Multi Theft Auto: Wiki Skip to content

httpClear

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 removes all text from the current HTML output.

Syntax

bool httpClear ( )

Returns

  • bool: value

Returns true if the output buffer was cleared successfully, false otherwise.

Code Examples

shared

This sample resource page adds a message to be outputted saying there are players in the server, but clears output if the server is empty so a blank page is displayed instead.

[html]
<html>
<head/>
<body>
There are some players in the server.
</body>
</html>
<*