031__FP Posted April 23, 2024 Share Posted April 23, 2024 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
Other Languages Moderators Lord Henry Posted April 25, 2024 Other Languages Moderators Share Posted April 25, 2024 De acordo com a Wiki do setElementBonePosition é necessário que você use a função dentro de um onClientPedsProcessed. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now