qaisjp Posted March 12, 2011 Share Posted March 12, 2011 Just a small question, how do you trigger a client event only if the client is ready? Cos my script uses "onIncomeMessage" from chatbubbles and it is bad that it creates an error if the client is downloading. Link to comment
Ransom Posted March 12, 2011 Share Posted March 12, 2011 onClientResourceStartClientside event This event is triggered when a resource is started. Please note that this is not triggered the same time as the serverside event onResourceStart is. The event is triggered when any clientside resources are started. This means it is triggered when a clientside script is initiated after a download, which includes downloading after join. So: * If a resource is running before a player joins, the onClientResourceStart event will be triggered after they join and have downloaded that resource. * If a resource is started after a player has joined, the player will be made to download the required files, and then the onClientResourceStart event will be triggered. https://wiki.multitheftauto.com/wiki/OnClientResourceStart Link to comment
qaisjp Posted March 12, 2011 Author Share Posted March 12, 2011 I don't need that. I have a member chat that output's to chatbubbles. There is no need for that event handler >.< if isClientReady(thePlayer) then Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now