![[Image: iDLEZUJ.png]](http://i.imgur.com/iDLEZUJ.png)
official link link has expired
Creating a new dialog
script to any use
Code:
//In client-script:
Dialog.create(id, ...), eg. Dialog.create(0, "Option 1", "Option 2");
//In event handler on server (file server-scripts/dialogbox.nut):
function dialogBoxEvent(pid, id, position){
if(id==0){
switch(position){
case 0: // code
case 1: // code
}
}
}
//update: better centering, fixed bug while destroy