omaarkingyaznbkhet1 Posted August 4, 2018 Share Posted August 4, 2018 function YAZN(button, state, absX, absY, wx, wy, wz, element ) if button == "right" then if (element) and (getElementType(element)=="object") then if getElementModel(1029) then outputChatBox("طاولة طعام") end end end end addEventHandler ( "onClientClick", getRootElement(), YAZN) اواجه مشكلة وغريب انه ما يطلع لى خطأ مصدره او اي شيء على سكريبت في دي بق سكريبت ابغا اسوي يوم يضغط على اوبجكت 1518 ينفد كلام ب شات Link to comment
N3xT Posted August 4, 2018 Share Posted August 4, 2018 addEventHandler ( "onClientClick", root, function ( button, state, _, _, _, _, _, element ) if ( button == "right" and state == "down" ) then if ( element and getElementType ( element ) == "object" ) then if ( getElementModel ( element ) == 1518 ) then outputChatBox("Object") end end end end ) 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