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

# getcustomasset

> Копирует существующий regular workspace file в ExtraContent/<hwid>/ и возвращает rbxasset:// string для скопированного asset path.

<div className="real-function-page">
  ```lua theme={null}
  getcustomasset(path: string): string
  ```

  ## Алиасы

  * `getsynasset`

  ## Аргументы

  <ParamField path={"path"} type={"string"} required>
    Path, который разрешается внутри workspace после separator normalization и workspace-boundary checks. Цель должна существовать и быть regular file; folders, invalid filenames, DOS device names и blocked extensions не принимаются.
  </ParamField>

  ## Возвраты

  <ResponseField name={"assetId"} type={"string"}>
    String в формате rbxasset://\<hwid>/\<workspace-relative-path>, где relative path использует forward slashes.
  </ResponseField>

  ## Пример

  Скопируйте существующий workspace file в asset folder и выведите возвращенный rbxasset path.

  ```lua theme={null}
  local path = "assets/example.txt"
  writefile(path, "asset bytes")

  local assetId = getcustomasset(path)
  print(assetId)
  print(getsynasset(path))
  ```
</div>
