Jump to content

Quero usar o triggerclient mais não consigo


Recommended Posts

Presciso passar um script SetBoneRotation para o server side num sistema de inventario, mas assim que uso a coisa do meu inventario ele não ultiliza o bone rotation

meu script:
Server

SERVER SIDE
     elseif item_name == 'regata-tog' then
          triggerClientEvent (player,"TBR_ANIM", root )
          useObject( player, 1858, 3, { -0.1, 0.3, 0, 0, 200, 5 })
          closeInventory( player )

Client
 

Client side
function TBR_ANIM()
    setElementBonePosition(localPlayer, 23, 0, 212.4, 360)
    setElementBonePosition(localPlayer, 33, 0, 208.8, 345.6)
    setElementBonePosition(localPlayer, 32, 0, 0, 75.6)
    setElementBonePosition(localPlayer, 22, 0, 0, 295.2)
end
addEvent('TBR_ANIM', true)
addEventHandler('TBR_ANIM', getRootElement(), TBR_ANIM)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...