๐Local Calls Imperial
Local Calls Imperial brings immersive realism to your FiveM server by enabling AI locals to automatically report crimes to ImperialCAD. Fully standalone and deeply customizable, this script raises the
๐พ Installation
Purchase and download the resource from our Tebex store.
Drag and drop the
LocalCallsImperial
resource into yourresources
folder, ensure there are no spaces in the name..Add the following to your
server.cfg
:
ensure LocalCallsImperial
Set the required convars for ImperialCAD API communication: (If not already done)
setr imperial_community_id "YOUR_COMMUNITY_ID"
set imperialAPI "YOUR_SECRET_KEY"
โ These convars are required for all ImperialCAD scripts.
โ๏ธ Configuration
All customization is handled inside config.lua
.
Basic Settings
Config = {
debug = true,
extremeDebug = true,
snitchPercent = 70,
callDuration = 7,
callNature = "Local 911 Call",
Report Cooldowns (per crime type)
reportcooldowns = {
hotwire = 15,
murder = 15,
shooting = 15,
carjack = 15,
lockpick = 15,
drugs = 15,
explosion = 15,
brandish = 30,
},
Witness Radius (per crime type)
witnessradius = {
hotwire = 75.0,
murder = 75.0,
shooting = 100.0,
carjack = 50.0,
lockpick = 75.0,
drugs = 45.0,
explosion = 100.0,
playerdead = 60.0,
brandish = 20.0,
},
Ignore Zones (no reporting will occur in these zones)
ignorezones = {
{ name = "Paleto Shooting Range", coords = vector3(-229.0, 6178.0, 31.9), radius = 50.0 },
{ name = "Sandy Range", coords = vector3(851.0, 3567.0, 33.5), radius = 45.0 },
{ name = "Mt Chiliad Hunting Area", coords = vector3(-1125.8, 4840.0, 218.0), radius = 150.0 },
{ name = "testing beach", coords = vector3(-1720.9, -1443.58, 4.58), radius = 1000 },
}
}
๐ค Exports & Developer Events
Client-Side Exports
exports["LocalCallsImperial"]:HasWitnessNearby(coords, radius)
Checks if there is a witness nearby within the given radius.
๐ฅ Params:
coords
(vector3): Coordinates to check aroundradius
(number): Radius to search for witnesses
๐ค Returns:
boolean
: true if a witness is foundnumber
ornil
: ped entitynumber
ornil
: distance from witness
exports["LocalCallsImperial"]:AttemptWitnessCall(ped, coords, reportType, appearance, distance, cause, duration?)
Attempts to simulate a 911 call by a nearby witness.
๐ฅ Params:
ped
(number): Witness pedcoords
(vector3): Location of incidentreportType
(string): Type of crime (e.g. "shoot", "murder")appearance
(string): Suspect appearancedistance
(number): Distance to witnesscause
(string): Description or cause of reportduration?
(integer): Optional duration of call (default: 7)
exports["LocalCallsImperial"]:CustomEvent(reportType, coords?, customMessage?, radius?)
Triggers a witness detection event from any script.
๐ฅ Params:
reportType
(string): Should match a key inConfig.reportcooldowns
coords?
(vector3): Optional override locationcustomMessage?
(string): Custom message overrideradius?
(number): Optional override radius
Use this to report lockpicking, robbery attempts, drug dealing, or any interactions that arent possible with base GTA in your logic.
๐ก Key Features
No framework dependency (fully standalone)
Built-in witness cancel system (eliminate them before they call)
Smart cooldowns to prevent spam
Exportable reporting logic
out of the box ImperialCAD integration
Includes default events for shooting, murder, carjack, drugs, etc.
exports for custom reporting
๐ License
LocalCallsImperial is a paid product by Imperial Solutions. Unauthorized redistribution or resale is strictly prohibited. For support, please contact us through your download page or ticket panel.
Last updated
Was this helpful?