Jump to content

Features in Dimension


Recommended Posts

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

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