From b50fb3ba65979f74814217b22be30fa25679243e Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Tue, 11 Feb 2020 20:29:01 +0100 Subject: [PATCH] fixxxx (#35) --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index 3442f910..cb3c5c11 100644 --- a/server/main.lua +++ b/server/main.lua @@ -29,7 +29,7 @@ RegisterCommand('twt', function(playerId, args, rawCommand) end, false) RegisterCommand('me', function(playerId, args, rawCommand) - if source == 0 then + if playerId == 0 then print('esx_rpchat: you can\'t use this command from console!') else args = table.concat(args, ' ') @@ -40,7 +40,7 @@ RegisterCommand('me', function(playerId, args, rawCommand) end, false) RegisterCommand('do', function(playerId, args, rawCommand) - if source == 0 then + if playerId == 0 then print('esx_rpchat: you can\'t use this command from console!') else args = table.concat(args, ' ')