← Scripts and libraries
imshooter/pawn-plus-model-dialog
Model selection dialog built with PawnPlus, featuring enhanced object preview options.
Library★ 2updated Feb 2026No licencePawn
Open on GitHubThis repository has no licence file. It is public to read, but that alone does not give permission to reuse it.
Try it in the Pawn compiler →
Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.
README.md
Installation
#include <pp-model-dialog>
Menu Skins
void:ShowSkinsModelDialog(playerid) {
yield 1;
new
List:list = list_new(),
response[E_MODEL_DIALOG_DATA]
;
for (new i; i <= 311; i++) {
AddModelDialogMenuItem(list, i);
}
await_arr(response) ShowAsyncModelDialogMenu(playerid, list, "SKINS", "SELECT", "CANCEL");
if (response[E_MODEL_DIALOG_RESPONSE] == MODEL_DIALOG_RESPONSE_SELECT) {
SetPlayerSkin(playerid, response[E_MODEL_DIALOG_MODEL_ID]);
}
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strequal(cmdtext, "/skins")) {
ShowSkinsModelDialog(playerid);
return 1;
}
return 0;
}
Menu Items
void:ShowItemsModelDialog(playerid) {
yield 1;
new
List:list = list_new(),
response[E_MODEL_DIALOG_DATA]
;
new const
models[] = {2891, 1271, 19054, 19055, 19056, 19057, 19058, 355, 356}
;
new const desc[][] = {
"~w~Clothing Package~n~~y~X~w~1",
"~w~Wooden Box~n~~y~X~w~1",
"~w~Common Box~n~~y~X~w~1",
"~w~Uncommon Box~n~~y~X~w~1",
"~w~Rare Box~n~~y~X~w~1",
"~w~Epic Box~n~~y~X~w~1",
"~w~Legendary Box~n~~y~X~w~1",
"~w~AK47~n~~y~X~w~200",
"~w~M4~n~~y~X~w~200"
};
new const Float:arr[][] = {
{53.0, 53.0, -20.0, 00.0, -45.0, 1.0, 01.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, -20.0, 00.0, 045.0, 1.0, 00.0, 0.0},
{53.0, 53.0, 000.0, 35.0, 180.0, 2.0, -5.0, 6.0},
{53.0, 53.0, 000.0, 35.0, 180.0, 2.0, -5.0, 6.0}
};
for (new i, size = sizeof (models); i < size; i++) {
AddModelDialogMenuItem(list, models[i], desc[i],
.sizeX = arr[i][0],
.sizeY = arr[i][1],
.rotationX = arr[i][2],
.rotationY = arr[i][3],
.rotationZ = arr[i][4],
.zoom = arr[i][5],
.offsetX = arr[i][6],
.offsetY = arr[i][7]
);
}
await_arr(response) ShowAsyncModelDialogMenu(playerid, list, "ITEMS", "SELECT", "CANCEL");
// ...
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strequal(cmdtext, "/items")) {
ShowItemsModelDialog(playerid);
return 1;
}
return 0;
}
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing