Guest Posted January 19, 2008 Share Posted January 19, 2008 I have 2 script for a gamemode, a serverside script and a clientside script. Can i send a variable defined in the server side script to the client side script? I will give an example: Server script currentround= 0 Client script outputChatBox ( "Current round are" .. currentround) This don't work. I also tried with a function setElementData / getElementData, but nothing. Sorry for my bad english Link to comment
eAi Posted January 19, 2008 Share Posted January 19, 2008 I'd suggesting using an event. Use: addEvent, addEventHandler and triggerClientEvent Link to comment
Guest Posted January 19, 2008 Share Posted January 19, 2008 I't not possible to make this type of variable. I had thought about using a multiple event. Thank for your reply 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