Sign in to follow this  
ArcAngeL

Only local player see Gta IV animations

Recommended Posts

ı downloaded gta 4 animations for my server but only local player see the animations.how can ı change local player to 'player'.ı didint put on serverside its not worked.anybody can help me ?

 

local animTable = {

	ifp = {},

	anims = {
		"abseil",
		"ARRESTgun",
		"ATM",
		"BIKE_elbowL",
		"BIKE_elbowR",
		"BIKE_fallR",
		"BIKE_fall_off",
		"BIKE_pickupL",
		"BIKE_pickupR",
		"BIKE_pullupL",
		"BIKE_pullupR",
		"bomber",
		"CAR_alignHI_LHS",
		"CAR_alignHI_RHS",
		"CAR_align_LHS",
		"CAR_align_RHS",
		"CAR_closedoorL_LHS",
		"DAM_armL_frmLT",
		"DAM_armR_frmBK",
		"DAM_armR_frmFT",
		"DAM_armR_frmRT",
		"DAM_LegL_frmBK",
		"SHOT_leftP",
		"SHOT_partial",
		"SHOT_partial_B",
		"SHOT_rightP",
		"Shove_Partial",
		"Smoke_in_car",
		"sprint_civi",
		"sprint_panic",
		"Sprint_Wuzi",
		"swat_run",
		"Swim_Tread",
		"Tap_hand",
		"Tap_handP",
		"turn_180",
		"Turn_L",
		"Turn_R",
		"WEAPON_crouch",
		"XPRESSscratch"
	}

}

addEventHandler("onClientResourceStart", resourceRoot,
	function()

		animTable.ifp["block"] = "ped"
		animTable.ifp["ifp"] = engineLoadIFP("ped.ifp", animTable.ifp["block"])

		for _, v in ipairs(animTable.anims) do
			engineReplaceAnimation(localPlayer, "ped", v, animTable.ifp["block"], v)
		end

	end
)


 

Share this post


Link to post
Quote

Tip: If you want to synchronize animations, you can check [ifp_demo] resource

 

Edited by stPatrick

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.