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

> Copia un regular workspace file existente a ExtraContent/<hwid>/ y devuelve un rbxasset:// string para el asset path copiado.

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

  ## Alias

  * `getsynasset`

  ## Argumentos

  <ParamField path={"path"} type={"string"} required>
    Path resuelto dentro del workspace despues de separator normalization y workspace-boundary checks. El destino debe existir y ser un regular file; folders, invalid filenames, DOS device names y blocked extensions no se aceptan.
  </ParamField>

  ## Retornos

  <ResponseField name={"assetId"} type={"string"}>
    String con la forma rbxasset://\<hwid>/\<workspace-relative-path>, usando forward slashes para el relative path.
  </ResponseField>

  ## Ejemplo

  Copia un workspace file existente al asset folder e imprime el rbxasset path devuelto.

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

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