GerardWay Posted July 17, 2014 Share Posted July 17, 2014 setSkyGradient(0,0,0,0,0,0) setWaterColor(255,0,0) How can I set those ^ as working in the 666th Dimension only? So like, the 0 Dimension is normal, but the 666th Dimension has a black sky and red water Any help is appreciated! Link to comment
Et-win Posted July 17, 2014 Share Posted July 17, 2014 If server-sided: Check or the player is in the 666th dimension. Then use 'triggerClientEvent' and set the code's client-side so only the client can see them. If client-sided: Also check or the player is in the 666th dimension, then set the codes. Link to comment
GerardWay Posted July 17, 2014 Author Share Posted July 17, 2014 Ah, I'm not so good with that side of LUA, could I possibly have an example please? Link to comment
Max+ Posted July 17, 2014 Share Posted July 17, 2014 Ah, I'm not so good with that side of LUA, could I possibly have an example please? addEventHandler( 'onClientResourceStart', resourceRoot, function ( ) if getElementDimension ( localPlayer ) ~= 666 then --- if he is not in 666 then setWaterColor(0,0,255) setSkyGradient(0,0,0,0,0,0) outputChatBox ( ' * Sky , Water Change to normal *', 255, 0, 0 ) ----- set it to normal else --- if he is in 666 then setWaterColor(255,0,0) setSkyGradient(0,0,0,0,0,0) outputChatBox ( ' * Sky , Water Changed to Custom *', 255, 0, 0 ) end end ) 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