Ks-Live-Environement
Installation
- Unzip the delivered archive into your
resources/folder, under the nameks-live-environement. - Import the provided
install.sqlfile into your database. - Add
ensure ks-live-environementto yourserver.cfg, afteroxmysqlandqb-core. - Restart your server.
Configuration
Config.WitnessChance = 65 -- % de chance qu'un PNJ à proximité devienne témoin
Config.WitnessRadius = 15.0 -- rayon de détection autour du délit, en mètres
Config.GSRDuration = 600 -- secondes avant disparition des résidus de tir
WitnessChance prevents every nearby NPC from automatically becoming a witness — lower it for harder investigations, raise it for a more reactive world.
Reviewing collected testimony
Evidence tied to a crime can be pulled from any investigation script:
exports['ks-live-environement']:GetEvidence(incidentId)
-- retourne la liste des témoignages et indices physiques liés à cet incident
Each incident gets a unique identifier, reusable to link several pieces of evidence together over the course of an investigation.
Common issues
No NPC ever becomes a witness. Check that Config.WitnessChance isn’t set to 0, and that the NPCs present aren’t excluded via Config.ExcludedPedModels.
Shell casings don’t appear on the ground. Check that Config.SpawnCasings is enabled and that the weapon used is listed in Config.WeaponCasingModels — unlisted weapons don’t eject a physical casing by default.
Something not covered here? Join our Discord.

