> For the complete documentation index, see [llms.txt](https://legacydmc.gitbook.io/chaser/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacydmc.gitbook.io/chaser/fundamentals/utilizing-the-c.h.a.s.e.r-chase-cam.md).

# Utilizing the C.H.A.S.E.R chase cam

Utilizing the C.H.A.S.E.R chase cam, involves creating a command or script to execute the export to enable the racing camera.\
\
In order to create a command to enable/disable C.H.A.S.E.R racing camera, create a lua resource and paste the following code:<br>

```lua
local chaser = exports['legacydmc_chaser']

RegisterCommand("enableracingcam", function()
    if chaser:chaser_getloadstatus() then
        chaser:chaser_startcamera()
    end
end, false)

RegisterCommand("disableracingcam", function()
    if chaser:chaser_getloadstatus() then
        chaser:chaser_stopcamera()
    end
end, false)

```
