# Advanced Speed Camera

> Reference for Advanced Speed Camera in policejob.

[All exports](/docs/jobs/policejob/reference/exports)

This page documents the supported public integration calls. Client values are never authoritative for police permissions, review decisions, evidence, offences, or billing.

## Advanced Speed Camera

### Read deployed speed cameras

#### `GetSpeedcamCameras()`

Returns the current server-owned camera catalogue. This is a server export and cannot be called
directly by a FiveM client.

```lua [server.lua]
local cameras = exports["sky_policejob"]:GetSpeedcamCameras()

for _, camera in ipairs(cameras) do
    print(camera.id, camera.label, camera.status, camera.limit)
end
```

Each entry contains:

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Display ID such as <code>
        SP-004
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        label
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Configured camera name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Always <code>
        speedcam
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        status
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        online
      </code>
      
      , <code>
        maintenance
      </code>
      
      , or <code>
        offline
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        durability
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Current server-owned durability
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        limit
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Configured speed limit
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        tolerance
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Configured tolerance
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        target
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Internal numeric camera ID used by supported camera views
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        coords
      </code>
    </td>
    
    <td>
      <code>
        table
      </code>
    </td>
    
    <td>
      Server-stored world coordinates
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        heading
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Server-stored camera heading
    </td>
  </tr>
</tbody>
</table>

Treat the returned table as a snapshot. Changing it does not change the server cache or database.

### Review mutations are intentionally private

Advanced review approval and discard are not public exports. The built-in path validates the acting
officer's current police job, duty, Boss Menu permission, review ownership, evidence, offence, fine,
billing adapter, target player, and review status immediately before mutation.

<callout color="success" icon="i-lucide-shield-check">

Do not proxy a raw client event into a server export. If an integration exposes camera information to
a client, filter the returned fields and authorize the requesting player first. Review IDs, owner
records, evidence, and billing actions must remain server-side.

</callout>

See [Advanced Speed Camera](/docs/jobs/policejob/features/advanced-speed-camera) for the complete
review and exploit-protection workflow.
