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

> Menyalin regular workspace file yang ada ke ExtraContent/<hwid>/ dan mengembalikan rbxasset:// string untuk asset path yang disalin.

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

  ## Alias

  * `getsynasset`

  ## Argumen

  <ParamField path={"path"} type={"string"} required>
    Path yang diselesaikan di dalam workspace setelah separator normalization dan workspace-boundary checks. Target harus ada dan berupa regular file; folders, invalid filenames, DOS device names, dan blocked extensions tidak diterima.
  </ParamField>

  ## Return

  <ResponseField name={"assetId"} type={"string"}>
    String dengan bentuk rbxasset://\<hwid>/\<workspace-relative-path>, memakai forward slashes untuk relative path.
  </ResponseField>

  ## Contoh

  Salin workspace file yang ada ke asset folder dan cetak rbxasset path yang dikembalikan.

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

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