Jump to content

[Help] In about "addEventHandler" from client


Recommended Posts

Actually, onClientPlayerJoin isn't triggered by local player because client-side scripts start after player has already joined the server. Use onClientResourceStart attached to getResourceRootElement(getThisResource()) instead.

Link to comment
then, If I uses "getLocalPlayer()", if it uses "createFire" function, in only one player the fire this it creates?

no, its not workign that way.. read some topics about difference betweeen client-side and server-side scripts, find some tutorials, and good luck :)

btw: are you translating your text with google translate, or by yourself?

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