
Having an issue where !delay is working fine with !cfx when I run my macro as a GM, but the VFX do not display when the macro is run by a player. If I remove the !delay command, however, the players can run the VFX (via the !cfx command) through the macros. I suspect the problem is in my implementation of the msg.playerid adjustment mentioned here , but I'm new to scripting and I'm not sure what I'm doing wrong: on("chat:message", function(msg) {
if('api' !== msg.type ) {
return;
}
if (!state.cfx_pid)
state.cfx_pid = "API";
if (msg.playerid !== "API")
state.cfx_pid = msg.playerid;
else
msg.playerid = state.cfx_pid; Is the above correct? If not, how do I need to adjust to get it to work correctly? If it is correct, is there any other permissions issue that would prevent !delay from working with !cfx for a player? Thanks!