SuppressCrimeThisFrame
DocsSuppressCrimeThisFrame(player, crimeType)Description
Suppresses a crime for a given player for this frame only.
Note: This native needs to be executed inside a thread if a crime is meant to be suppressed for a given amount of time.
Parameters
| Name | Type | Description |
|---|---|---|
player | Player | The player we are suppressing the crime for. |
crimeType | int | The crime to suppress, see [`REPORT_CRIME`](#\_0xE9B09589827545E7) for available types. |
Quick Snippet: Get Playerplayer
playerUse this to get the local player ID or a target player's server ID.
-- Get the local player index (client-side)
local playerId = PlayerId()
-- Get the local player's server ID (for server events)
local serverId = GetPlayerServerId(playerId)
print("Player ID: " .. playerId)
print("Server ID: " .. serverId)
-- Get player ped from a server ID:
-- local targetPed = GetPlayerPed(GetPlayerFromServerId(targetServerId))Returns
voidThis native does not return a value.