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

> Sao chep mot regular workspace file dang ton tai vao ExtraContent/<hwid>/ va tra ve rbxasset:// string cho asset path da sao chep.

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

  ## Alias

  * `getsynasset`

  ## Đối số

  <ParamField path={"path"} type={"string"} required>
    Path duoc resolve ben trong workspace sau separator normalization va workspace-boundary checks. Target phai ton tai va la regular file; folders, invalid filenames, DOS device names va blocked extensions khong duoc chap nhan.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"assetId"} type={"string"}>
    String theo dang rbxasset://\<hwid>/\<workspace-relative-path>, dung forward slashes cho relative path.
  </ResponseField>

  ## Ví dụ

  Sao chep mot workspace file dang ton tai vao asset folder va in rbxasset path duoc tra ve.

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

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