From 952d68e07dd7647f649ee0e557edef6aa51c99b4 Mon Sep 17 00:00:00 2001 From: Tony <1414927+zfbx@users.noreply.github.com> Date: Wed, 23 Mar 2022 16:13:07 -0400 Subject: [PATCH] Save people headaches - warn about client exports --- client/client.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/client.lua b/client/client.lua index 155da53..7222973 100644 --- a/client/client.lua +++ b/client/client.lua @@ -23,3 +23,13 @@ RegisterNetEvent(GetCurrentResourceName()..':teleport', function(x, y, z, withVe SetEntityCoords(PlayerPedId(), x, y, z); end end) + +function serverOnly() + print("[ERROR] The triggered event can only be run on the server.") +end + +exports('isRolePresent', serverOnly) +exports('getDiscordId', serverOnly) +exports('getRoles', serverOnly) +exports('getName', serverOnly) +exports('log', serverOnly)