From 65aa8862097f62fb5f772ad805cceb6b54531895 Mon Sep 17 00:00:00 2001 From: 55Honey <71938210+55Honey@users.noreply.github.com> Date: Mon, 27 Dec 2021 14:56:24 +0100 Subject: [PATCH] fix: change returns to allow core command scripts to proceed --- RecruitAFriend.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RecruitAFriend.lua b/RecruitAFriend.lua index 2e887f3..9063c73 100644 --- a/RecruitAFriend.lua +++ b/RecruitAFriend.lua @@ -200,6 +200,10 @@ local function RAF_command(event, player, command) -- split the command variable into several strings which can be compared individually commandArray = RAF_splitString(command) + if commandArray[1] ~= "bindraf" and commandArray[1] ~= "forcebindraf" and commandArray[1] ~= "raf" then + return + end + if commandArray[2] ~= nil then commandArray[2] = commandArray[2]:gsub("[';\\, ]", "") if commandArray[3] ~= nil then @@ -267,7 +271,7 @@ local function RAF_command(event, player, command) elseif commandArray[1] == "raf" then if player == nil then print(".raf is not meant to be used from the console.") - return + return false end local playerAccount = player:GetAccountId()