2019-06-19 01:10:15 -04:00
|
|
|
properties = {
|
|
|
|
permissions = 0,
|
2022-02-05 13:56:58 -05:00
|
|
|
parameters = "ss",
|
2019-06-19 01:10:15 -04:00
|
|
|
description =
|
|
|
|
[[
|
|
|
|
Plays music <id> to player.
|
|
|
|
!music <id>
|
2022-02-05 13:56:58 -05:00
|
|
|
!music <id> <transition_type>
|
2019-06-19 01:10:15 -04:00
|
|
|
]],
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:56:58 -05:00
|
|
|
function onTrigger(player, argc, music, transition)
|
2019-06-19 01:10:15 -04:00
|
|
|
music = tonumber(music) or 0;
|
2022-02-05 13:56:58 -05:00
|
|
|
transition = tonumber(transition) or nil;
|
|
|
|
player:SendMessage(0x20, "", tostring(argc).." "..tostring(music).." "..tostring(transition));
|
|
|
|
player:ChangeMusic(music, transition);
|
2019-06-19 01:10:15 -04:00
|
|
|
end;
|