> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Can enter workshop

> Add your own conditions to enter a forgery workshop.

Called when a player enters a forgery workshop. That the player is a member of the owning job, from the workshop's `minGrade`, is checked before. Return `false` to keep them out.

Edit `Editable.CanEnterWorkshop` in `editable/server.lua`:

<CodeGroup>
  ```lua Function theme={null}
  function Editable.CanEnterWorkshop(src, workshopId)
      return true
  end
  ```

  ```lua Example theme={null}
  -- Nobody enters while wanted by the police
  function Editable.CanEnterWorkshop(src, workshopId)
      return not exports["my_wanted"]:IsWanted(src)
  end
  ```
</CodeGroup>

### Parameters

| Name | Data Type | Description |
| - | - | - |
| `src` | integer | Server ID of the player |
| `workshopId` | string | The workshop ID, a key of `Config.Forgery.workshops` |

### Return value

| Name | Data Type | Description |
| - | - | - |
| `allowed` | boolean | **true** to let the player in |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.