Hello!
I need to use attachElements with an object in a player's gun, but from what I noticed the player's weapon is not recognized as "element".
Code:
function customM4(source)
if getPedWeapon(source) == 31 then
local gunModel = createObject(1487, 1, 2, 3)
attachElements(gunModel, getPedWeapon(source))
end
end
addCommandHandler("m4skin", customM4)