Jump to content

[QUESTION] triggerClientEvent, triggerServerEvent.


PotatoHead

Recommended Posts

I have a question like the title states. I am wondering if I have files set up like so:

MTA Server/mods/deathmatch/resources/login/login_c.lua

Then I have a file like so:

MTA Server/mods/deathmatch/resources/login/arena_c.lua

So my question is "Can I use 'triggerClientEvent' in the login file to trigger something in the arena file? I tested it and it didnt seem to work so I decided to ask.

Link to comment

triggerEvent, will work.

For example in login_c.lua is there a function for hiding the window, and you want to show the other windows while it hiding and you have on arenas_c.lua a eventhandler called "derp:polate", then you can use this:

triggerEvent ( "derp:polate", localPlayer ) 

feel free to ask us more if you still can't figure out.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...