MoayedAlsif Posted October 24, 2018 Share Posted October 24, 2018 ابي كود اذا أشرت على بيد Ped يسوي شي معين طبعا احدد الشخصية من الاكواد Link to comment
KillerX Posted October 24, 2018 Share Posted October 24, 2018 (edited) 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 October 24, 2018 by KillerX Link to comment
Abdul KariM Posted October 24, 2018 Share Posted October 24, 2018 https://wiki.multitheftauto.com/wiki/OnClientPlayerTarget https://wiki.multitheftauto.com/wiki/OnPlayerTarget Link to comment
[T]|O|[P]George Posted October 24, 2018 Share Posted October 24, 2018 في يوسفل فنكشن جاهز isPedAiming جربه Link to comment
KillerX Posted October 24, 2018 Share Posted October 24, 2018 Just now, Abdul KariM said: https://wiki.multitheftauto.com/wiki/OnPlayerTarget 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
[T]|O|[P]George Posted October 24, 2018 Share Posted October 24, 2018 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
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