Sign in to follow this  
RobbyAJM

setObjectScale in gate serverside

Recommended Posts

Hello i tried to change the object size of gate, but it's doesnt work. i see the mta wiki there's no tutorial on serverside.

local gate = createObject ( 16775,2389.1000976563,1984.0999755859,55.799999237061, 0, 0, 0 )
	if ( gate ) then
		setObjectScale ( gate, 20)
local state = 0 

function move()
	if state == 0 then
        moveObject ( gate, 1000,2389.1000976563,1984.0999755859,75.799999237061)
        state = 1
	elseif state == 1 then
        moveObject ( gate, 1000,2389.1000976563,1984.0999755859,55.799999237061)
        state = 0
	end
end
 addCommandHandler("tailubau21357329", move )

 

Share this post


Link to post

Looks like you're missing an end in your script after the setObjectScale function.

Share this post


Link to post
local gate = createObject ( 16775,2389.1000976563,1984.0999755859,55.799999237061, 0, 0, 0 )
if ( gate ) then
	setObjectScale ( gate, 20)
end

 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.