GhostXoP Posted November 25, 2012 Posted November 25, 2012 When i restart my resource (login for example) i go to join with my other computer. The problem is, the first time it does not show any windows, no menus, but when i log in via the commandline it spawns my player. When i reconnect, and from there on out, the menus show. Its when i restart or refreshall resources it does this. What could be the problem?
Jaysds1 Posted November 26, 2012 Posted November 26, 2012 try using the onClientResource event. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
GhostXoP Posted November 26, 2012 Author Posted November 26, 2012 That fixed it, i was using onPlayerJoin and triggering client side to bring it up, but this works better. Thanks again
Castillo Posted November 26, 2012 Posted November 26, 2012 For when the player joins, he doesn't has the client script loaded, that's why it worked some times. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
GhostXoP Posted November 26, 2012 Author Posted November 26, 2012 I had a feeling it was like that, it only happened when i had a script modification. Hadn't figured a way around it until i realized i could better use the event. Thanks again
Jaysds1 Posted November 27, 2012 Posted November 27, 2012 np My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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