# MAP::_MAP_DISCOVERY_SET_ENABLED

- **Hash:** `0xDA98246C7A3C2189`
- **Namespace:** MAP
- **Runtime name (Lua/JS):** `MapDiscoverySetEnabled`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MAP/_MAP_DISCOVERY_SET_ENABLED

## Signature

```c
void _MAP_DISCOVERY_SET_ENABLED(Hash discoveryHash);
```

## Parameters

- `discoveryHash` (`Hash`)

## Returns

`void`

## Usage

### Lua

```lua
MapDiscoverySetEnabled(discoveryHash)

-- always available, by hash
Citizen.InvokeNative(0xDA98246C7A3C2189, discoveryHash)
```

### JavaScript

```js
MapDiscoverySetEnabled(discoveryHash);

// by hash
Citizen.invokeNative('0xDA98246C7A3C2189', discoveryHash);
```

### C#

```csharp
Function.Call((Hash)0xDA98246C7A3C2189, discoveryHash);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
