RaidProperty
exports['kartik-properties']:RaidProperty(source, propertyId)🔹 Description
Starts a police raid on a property for an officer, exactly like the Raid option on the property door. Use it to start raids from another police script.
The same checks as the door option always apply: the officer must have a job from Config.PoliceJobs, stand at the property entrance, and (when Config.RaidRequiresWarrant is on) the owner or tenant must have an active warrant. If a check fails the officer gets the usual notification and the export returns false.
On success the officer gets the door breaching progress bar (longer on a reinforced door). The door opens when it finishes and the owner is notified.
🔧 Parameters
| Name | Type | Required | Description |
|---|---|---|---|
source | number | ✅ | Server id of the officer. |
propertyId | number | string | ✅ | Id of the property to raid. |
📤 Returns
| Type | Description |
|---|---|
boolean | true when the breaching action started, false otherwise. |
🧠 Example Usage
local nearby = exports['kartik-properties']:GetNearbyProperties(source)
if nearby[1] then
exports['kartik-properties']:RaidProperty(source, nearby[1].id)
end