> ## 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

> Kopiert eine vorhandene regular workspace file nach ExtraContent/<hwid>/ und gibt einen rbxasset:// string fuer den kopierten asset path zurueck.

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

  ## Aliase

  * `getsynasset`

  ## Argumente

  <ParamField path={"path"} type={"string"} required>
    Path, der nach separator normalization und workspace-boundary checks im workspace aufgeloest wird. Das Ziel muss existieren und eine regular file sein; folders, invalid filenames, DOS device names und blocked extensions werden nicht akzeptiert.
  </ParamField>

  ## Rückgaben

  <ResponseField name={"assetId"} type={"string"}>
    String im Format rbxasset://\<hwid>/\<workspace-relative-path>, wobei der relative path forward slashes verwendet.
  </ResponseField>

  ## Beispiel

  Kopiere eine vorhandene workspace file in den asset folder und gib den zurueckgegebenen rbxasset path aus.

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

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