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.

This commit is contained in:
Chronolegionnaire 2025-04-06 06:27:40 +00:00
parent 3901084cc2
commit ed62f9b12b

View file

@ -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")