Jump to content

Moving port


Recommended Posts

wtf are you talking about... Spawnplayer??? I mean how can I make GATE which open with command.. like /open

there is what I tried, but it didnt work at all

  
allObjects = getElementsByType ( "object" ) 
  
for key, theObject in ipairs ( allObjects ) do 
        local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position 
        local 18.950716 = 19.320068 + 100 -- make a new z position 
        moveObject ( theObject, 10000, 133.091675, 1941.873901, 18.950716 ) --move the object to this position in 10 seconds. 
end 
  
addCommandHandler("open", moveObject) 
  

Link to comment

  
function onstartup () 
   object = createObject ( some id, x, y, z, rx, ry, rz ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), onstartup ) 
  
function move () 
  moveObject ( object, time to move, x, y, z ) 
end 
addCommandHandler("open", move) 
  

That should work :P -- And put the full co-ordinate's for move-object - Or you could use getElementPosition

Link to comment

wtf are you talking about... Spawnplayer??? I mean how can I make GATE which open with command.. like /open

there is what I tried, but it didnt work at all

  
allObjects = getElementsByType ( "object" ) 
  
for key, theObject in ipairs ( allObjects ) do 
        local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position 
        local 18.950716 = 19.320068 + 100 -- make a new z position 
        moveObject ( theObject, 10000, 133.091675, 1941.873901, 18.950716 ) --move the object to this position in 10 seconds. 
end 
  
addCommandHandler("open", moveObject) 
  

I hate liars! How am I supposed to believe that you made a "Car Shop" and needed GUI to spawn the car next to you?! I'm sorry but you won't get help from me anymore...

Link to comment
  
function onstartup () 
   object = createObject ( some [b]id[/b], x, y, z, rx, ry, rz ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), onstartup ) 
  
function move () 
  moveObject ( object, time to move, x, y, z ) 
end 
addCommandHandler("open", move) 
  

That should work :P -- And put the full co-ordinate's for move-object - Or you could use getElementPosition

There is that id, how can I find right id :P? In gta there is 11k object id's.. How can I find right :)?

Edit:

I hate liars! How am I supposed to believe that you made a "Car Shop" and needed GUI to spawn the car next to you?! I'm sorry but you won't get help from me anymore...
Wtf are you talking about 50p? What am I lied now??? Stop spamming my topic if you dont help.
Link to comment

Talasma, check this topic, your topic... https://forum.multitheftauto.com/viewtop ... 91&t=24665

Read what you said in your first post.

Hello! I maked vehice shop for my server, but how can I spawn them? Help? I mean how can you make "panel" for example you push "r" and you get list for your vehicles and you can also spawn them.. Help? Thanks if somebody can help with this :P

Who helped you the most? I don't help? I helped you a lot... because you stopped replying there, it probably means you finally got it working.

OK fine, you "maked" vehicle shop... but when I look at this code:

        local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position 
        local 18.950716 = 19.320068 + 100 -- make a new z position 

I don't really believe you made vehicle shop -_-' I lost lots of time helping you out in your previous topic and I see, I wasted that time badly. Anyway, good luck with scripting.

local 9 = 4 + 5 

Link to comment
Talasma, check this topic, your topic... https://forum.multitheftauto.com/viewtop ... 91&t=24665

Read what you said in your first post.

Hello! I maked vehice shop for my server, but how can I spawn them? Help? I mean how can you make "panel" for example you push "r" and you get list for your vehicles and you can also spawn them.. Help? Thanks if somebody can help with this :P

Who helped you the most? I don't help? I helped you a lot... because you stopped replying there, it probably means you finally got it working.

OK fine, you "maked" vehicle shop... but when I look at this code:

        local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position 
        local 18.950716 = 19.320068 + 100 -- make a new z position 

I don't really believe you made vehicle shop -_-' I lost lots of time helping you out in your previous topic and I see, I wasted that time badly. Anyway, good luck with scripting.

local 9 = 4 + 5 

I agree. Wtf im a nooby scripter but i can still type in some co-ordinates and moveobject :P And i dont think i could make a vehicle shop so i dont thinkTalasma can

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