Jump to content

Dimension


Depot

Recommended Posts

mysql maybe not good for a beginner ( if you are one ), use setAccountData.

afaik, you want to change a player's interior and dimension and make it save, so it would probably be/like

SET DIMENSION:

-- SERVERSIDED 
addCommandHandler("setdimen",function(player,cmd,id) 
     if not id then 
     outputChatBox("You need to enter an dimension id! (0-65535)",player,255) 
          elseif id >=65535 then 
          outputChatBox("Specific dimension doesn't exists! use (0-65535)",player,255) 
     else 
     setElementDimension(player,id) 
     outputChatBox("You teleported to dimension: "..id,0,255) 
     end 
end 
) 

Here for interior,

https://wiki.multitheftauto.com/wiki/SetElementInterior,

As mentioned in first line, you can use setAccountData for saving

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