Jump to content

1 Questino!


qaisjp

Recommended Posts

  • MTA Team
Posted

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.

Posted
onClientResourceStart

Clientside 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

  • MTA Team
Posted

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

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...