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

> Kopiuje istniejacy regular workspace file do ExtraContent/<hwid>/ i zwraca rbxasset:// string dla skopiowanego asset path.

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

  ## Aliasy

  * `getsynasset`

  ## Argumenty

  <ParamField path={"path"} type={"string"} required>
    Path rozwiazywany wewnatrz workspace po separator normalization i workspace-boundary checks. Cel musi istniec i byc regular file; folders, invalid filenames, DOS device names i blocked extensions nie sa akceptowane.
  </ParamField>

  ## Zwroty

  <ResponseField name={"assetId"} type={"string"}>
    String w formacie rbxasset://\<hwid>/\<workspace-relative-path>, z forward slashes w relative path.
  </ResponseField>

  ## Przykład

  Skopiuj istniejacy workspace file do asset folder i wypisz zwrocony rbxasset path.

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

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