Jump to content

اكواد


Recommended Posts

Just now, MoayedAlsif said:

ابي كود اذا أشرت على بيد

Ped 

يسوي شي معين

طبعا احدد الشخصية من الاكواد

Client

addEventHandler( 'onClientRender' , root , 
	function( )
		if ( getPedTask( localPlayer , "secondary" , 0 ) == "TASK_SIMPLE_USE_GUN" and getPedTarget( localPlayer ) ~= false and getElementType( getPedTarget( localPlayer ) ) == 'ped' ) then
			ped = getPedTarget( localPlayer )
			-- كمل باللي تبيه
		end
	end
)

 

Edited by KillerX
Link to comment
Just now, Abdul KariM said:

onPlayerTarget

Serverside event
 
 

This event is triggered when a player targets an element with his crosshair while aiming, or simply facing it while standing close. It's triggered again when the player no longer targets anything.

==============================================================================

الايفينت دا بدون ما يصوب اصلا بيسوي اللي موجود للفنكشن عشان كدا ما حطيتهولوا

onClientPlayerTarget

Clientside event
 
 

This event is triggered whenever the local player targets an element.

 

بس اعتقد دا بيظبط

========================================================================

Just now, [T]|O|[P]George said:

isPedAiming

دا يتجقق لو البيد مصوب ولا لا ما يجيبلك هو مصوب علي مين

يعني يرجع ترو لو مصوب فولس لو مب مصوب فقط

Link to comment
2 hours ago, KillerX said:

onPlayerTarget

Serverside event
 
 

This event is triggered when a player targets an element with his crosshair while aiming, or simply facing it while standing close. It's triggered again when the player no longer targets anything.

==============================================================================

الايفينت دا بدون ما يصوب اصلا بيسوي اللي موجود للفنكشن عشان كدا ما حطيتهولوا

onClientPlayerTarget

Clientside event
 
 

This event is triggered whenever the local player targets an element.

 

بس اعتقد دا بيظبط

========================================================================

دا يتجقق لو البيد مصوب ولا لا ما يجيبلك هو مصوب علي مين

يعني يرجع ترو لو مصوب فولس لو مب مصوب فقط

isPedAimingNearPed

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