Nonameman Posted July 9, 2011 Posted July 9, 2011 Hey! I don't really understand the usage of outputChatBox Client-side. Server-side I know that I can choose who can see the message, but Client-side there's no visibility param in it, it should only be visible to the client player. I saw some pages on the wiki where it was used Client-side with the visibleTo param / without the visibleTo param, but in the description it was defined like it sends message for all client players. So I'm a bit confused about it, I thought Client-side = only one client at the same time, Server-side = all the clients at the same time.
Buffalo Posted July 9, 2011 Posted July 9, 2011 You can not send messages to other clients using client-side outputChatBox, you can only trigger server events and message other players that way.
Nonameman Posted July 9, 2011 Author Posted July 9, 2011 As I thought, thanks! But also check this: https://wiki.multitheftauto.com/wiki/CreateVehicle (Example 2) Here you can see what I said first.
SDK Posted July 9, 2011 Posted July 9, 2011 Yup, that one is wrong. Clientside outputChatBox has no visibleTo param.
JR10 Posted July 10, 2011 Posted July 10, 2011 It's for administrators only, isn't it? EDIT: nvm, i 've done it.
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