# offer_friendship

Offers friendship to a resident.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("offer_friendship", [
  "avatar", "f2c1f1d5-2f67-4de4-8d0e-8bcb9e5b1c6a",
  "message", "Let's connect!",
  "nosafehub", 1
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="offer_friendship"
```

```snippet http-api-input-q5yvAagqsZ
avatar    | yes      | The UUID of the resident
message   | optional | Optional message to send
nosafehub | optional | Set to `1` to ignore the command if the bot is currently in a Linden Safe Hub (Welcome Area). Recommended for greeters and inviters.
```

```snippet http-api-output-JAwUcmg7i7
```