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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.