From ed62f9b12bd3f5fe3971d798279f87fcca659bf6 Mon Sep 17 00:00:00 2001 From: Chronolegionnaire Date: Sun, 6 Apr 2025 06:27:40 +0000 Subject: [PATCH] Lua api demands a boolean for victim aware but crimes.lua looks for a number. Which makes scripts that call the crime interface unable to provide a value other than nil for victim aware. --- files/data/scripts/omw/crimes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/data/scripts/omw/crimes.lua b/files/data/scripts/omw/crimes.lua index 58e043964b..827dd56bc0 100644 --- a/files/data/scripts/omw/crimes.lua +++ b/files/data/scripts/omw/crimes.lua @@ -42,7 +42,7 @@ return { "faction id passed to commitCrime must be a string or nil") assert(type(options.arg) == "number" or options.arg == nil, "arg value passed to commitCrime must be a number or nil") - assert(type(options.victimAware) == "number" or options.victimAware == nil, + assert(type(options.victimAware) == "boolean" or options.victimAware == nil, "victimAware value passed to commitCrime must be a boolean or nil") assert(options.type ~= nil, "crime type passed to commitCrime cannot be nil")