x = x - math.sin (math.rad (rx)) * 1
y = y + math.cos (math.rad (rx)) * 1
createObject ( 3260, x, y, z, 0, 90, rx )
addCommandHandler("tabla",
function (source)
local x,y,z = getElementPosition(source)
local rx = getElementRotation(source)
x = x - math.sin (math.rad (rx)) * 1
y = y + math.cos (math.rad (rx)) * 1
setPedAnimation( source, "knife", "knife_part")
setPedWeaponSlot ( source, 10 )
setTimer ( function()
createObject ( 3260, x, y, z, 0, 90, rx )
setPedAnimation( source, false)
end, 1000, 1 )
end
)