diff --git a/client/src/bindings/LocalPed.cpp b/client/src/bindings/LocalPed.cpp index 8a7ca0aa..c14f2be5 100644 --- a/client/src/bindings/LocalPed.cpp +++ b/client/src/bindings/LocalPed.cpp @@ -11,7 +11,7 @@ static void Constructor(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT_RESOURCE(); V8_CHECK_CONSTRUCTOR(); - V8_CHECK_ARGS_LEN(6); + V8_CHECK_ARGS_LEN_MIN_MAX(4, 6); uint32_t modelHash; if(info[0]->IsString()) diff --git a/client/src/bindings/LocalVehicle.cpp b/client/src/bindings/LocalVehicle.cpp index 006765b4..d1f56099 100644 --- a/client/src/bindings/LocalVehicle.cpp +++ b/client/src/bindings/LocalVehicle.cpp @@ -11,7 +11,7 @@ static void Constructor(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT_RESOURCE(); V8_CHECK_CONSTRUCTOR(); - V8_CHECK_ARGS_LEN(6); + V8_CHECK_ARGS_LEN_MIN_MAX(4, 6); uint32_t modelHash; if(info[0]->IsString())