Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using CitizenFX.Core;
- using System.Threading.Tasks;
- namespace BasicResourceClient
- public class BasicResourceClient : BaseScript
- {
- public bool hasReceivedMotd = false;
- public BasicResourceClient()
- {
- EventHandlers.Add("sendMotd", new Action<string>(ReceivedMotd));
- }
- private void ReceivedMotd(string motd)
- {
- if (!hasReceivedMotd)
- {
- TriggerEvent("chatMessage", "SYSTEM", new[] { 255, 0, 0 }, motd);
- hasReceivedMotd = true;
- }
- }
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment