llSetLinkPrimitiveParams(5,[PRIM_TEXTURE, 1, textureName, <1,1,1>, <0,0,0>, 0 ]);
The script displays the texture on Face #1 of the prim that is #5 in the linkset (see the first argument of llSetLinkPrimitiveParams). When linking multiple prims together into a linkset, the prims are numbered in reverse order, with the last one (which becomes the root) numbered 1. You may need to adjust this to match how you linked your vendor linkset (unless it's a single prim, in which case you'd better use llSetPrimitiveParams) .