---
title: "SendClientCheck | open.mp"
description: "Perform a memory check on the client."
canonical: https://omp.itsneufox.com/docs/scripting/functions/SendClientCheck
language: en
---

# SendClientCheck

## Description

Perform a memory check on the client.

| Name | Description |
| --- | --- |
| playerid | The ID of the player to check. |
| type | The type of check to perform. [See here](https://omp.itsneufox.com/docs/scripting/resources/opcodes) |
| memAddr | The base address to check. |
| memOffset | The offset from the base address. |
| byteCount | The number of bytes to check. |

## Returns

1: The function was executed successfully.

0: The function failed to execute. The player is not connected.

## Examples

```c
public OnPlayerConnect(playerid)
{
    SendClientCheck(playerid, 0x48, 0, 0, 2);
    return 1;
}

public OnClientCheckResponse(playerid, actionid, memaddr, retndata)
{
    if (actionid == 0x48) // or 72
    {
        print("The player is connecting using the PC client.");
    }
    return 1;
}
```

## Notes

note

-   There are 6 types of requests that the client processes (2, 5, 69, 70, 71, 72)
-   Type 72 doesn't use any of the other arguments \[arg | offset | size\].
-   The arg returns the uptime of the computer.

warning

**SA:MP Server**: This function only works when it is in a filterscript.

**Open Multiplayer Server**: This functions normally inside a gamemode / filterscript.

## Related Functions

-   [IsPlayerUsingOfficialClient](https://omp.itsneufox.com/docs/scripting/functions/IsPlayerUsingOfficialClient): Check if the player is using the official SA-MP client.
-   [IsPlayerUsingOmp](https://omp.itsneufox.com/docs/scripting/functions/IsPlayerUsingOmp): Check if the player is using the open.mp launcher.

## Related Callbacks

-   [OnClientCheckResponse](https://omp.itsneufox.com/docs/scripting/callbacks/OnClientCheckResponse): called when a SendClientCheck request completes.
