🔍Evidence

A core part of the police script. The evidence system allows you to drop different kinds of evidence for your police department to use in criminal investigations.

General Evidence Information:

  • When wearing gloves there is a 20% chance of a fingerprint dropping (this would be only a partial fingerprint)

  • When not wearing gloves there is a 50% chance of a fingerprint dropping in full

  • If forceNoDna is set to true then no DNA will be dropped

  • When wearing a mask there is a 10% chance of DNA dropping

  • When not wearing a mask there is a 50% chance of DNA dropping

autoDetectFingerprintDrop

Automatically detects where a fingerprint should be dropped based on raycasting to find the object the fingerprint should be attached to.

Parameter
Required
Type
Description

objectModels

List of model hashes

Finds the closest object with a matching model.

forceNoDna

boolean

If DNA should be completely ignored. Defaults to false.

TriggerEvent('police:client:autoDetectFingerprintDrop',
    { `prop_till_01` } --[[objectModels]],
    false --[[forceNoDna]])

autoDetectRaycastCoordFingerprintDrop

Automatically detects where a fingerprint should be dropped based on raycasting from the player to the end position. When an object is detected it will use this as the place to drop the evidence.

Parameter
Required
Type
Description

raycastEnd

vector4

Raycasts from the player to the point specified in order to drop the fingerprint.

forceNoDna

boolean

If DNA should be completely ignored. Defaults to false.

TriggerEvent('police:client:autoDetectRaycastCoordFingerprintDrop',
    vector3(0.0, 0.0, 0.0) --[[raycastEnd]],
    false --[[forceNoDna]])

dropFingerprintAndDna

Drops fingerprint and DNA evidence at the specified location.

  • When wearing gloves there is a 20% chance of a fingerprint dropping (this would be only a partial fingerprint)

  • When not wearing gloves there is a 50% chance of a fingerprint dropping in full

  • If forceNoDna is set to true then no DNA will be dropped

  • When wearing a mask there is a 10% chance of DNA dropping

  • When not wearing a mask there is a 50% chance of DNA dropping

Parameter
Required
Type
Description

fingerprintLocation

vector3

The specific location to drop the fingerprint. If not provided will drop in a random location near the player.

forceNoDna

boolean

If DNA should be completely ignored. Defaults to false.

TriggerEvent('police:client:dropFingerprintAndDna', fingerprintLocation, forceNoDna)

Last updated