Sign in to follow this  
biostunt

Lock prison doors

Recommended Posts

Sup Guys!

I have a problem with lock the prison doors.

I try this:

mp.game.object.doorControl(631614199,461.8065, -994.4086, 25.06443, true, 0.0, 50.0, 0);

But it isnt working. I call this event when player enter the server:

mp.events.add("lockDoors",()=>{
    mp.game.graphics.notify('~g~Hello ~w~World');
    mp.game.object.doorControl(631614199,461.8065, -994.4086, 25.06443, true, 0.0, 50.0, 0);
})

 

Share this post


Link to post
Share on other sites

It might be that you need to load/unload another ipl first.

I'd try to remove those doors and set it as clientside object and handle it through a custom event. Then you can interact with the door like sliding it only half the way or remove it, when someone blows it up.

Share this post


Link to post
Share on other sites

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.