Jump to content

[HELP PLS]Can I add the custom animation code


Recommended Posts

Client;

bindKey("x", "both", --- tuş ayar
    function(key, state)
        if state == "down" then
	if getElementData(localPlayer, "apontar") == false then
	setElementData(localPlayer, "apontar", true)

	triggerServerEvent ( "onClientSyncVOZ", localPlayer )
	end
        else
	setElementData(localPlayer, "apontar", false)

	triggerServerEvent ( "onClientSyncVOZparar", localPlayer )
    end
end
)

Server;

addEvent("onClientSyncVOZ", true )
addEventHandler("onClientSyncVOZ", root,
    function()
	setPedAnimation(source, "GHANDS", "gsign1", 0, true, false, false)
	setTimer ( setPedAnimationProgress, 100, 1, source, "gsign1", 1.16)
	setTimer ( setPedAnimationSpeed, 1500, 1, source, "gsign1", 0)
	
    end
)


addEvent("onClientSyncVOZparar", true )
addEventHandler("onClientSyncVOZparar", root,
    function()
		setTimer ( setPedAnimation, 100, 1, source,  "GHANDS", "gsign1", 5000, false, false, false)
		setTimer ( setPedAnimation, 250, 1, source, nil)
		
    end
)

Can I add the custom animation code I made, called santral.ifp, to these codes?

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...