PoliceRaidDoor
Usage
exports.nolag_properties:PoliceRaidDoor()Returns
boolean- Returnstrueif the raid process has been successfully triggered on a valid MLO door, orfalseif no valid target was found or the action could not be started.
Usage Example
example.lua
local success = exports.nolag_properties:PoliceRaidDoor()
if success then
print("Raid started with stormram.")
else
print("No valid MLO door found or raid could not be initiated.")
endDescription
This export is used to trigger a forced police raid on an MLO property door handled by nolag_properties.
It should be called when a player uses a stormram item (for example, inside your inventory usable item callback). Once executed, the system will:
- 1
Check proximity
Verify if the player is near a valid MLO property door.
- 2
Verify lock state
Ensure the door is currently locked.
- 3
Trigger raid logic
Start the configured raid/breach logic (animation, progress, sound, etc., depending on your setup).
If all conditions are met, the door breaching process will begin. If the player is not targeting a valid MLO door, the export will return false and no action will be triggered.