TacToX Posted May 31, 2019 Share Posted May 31, 2019 السلام عليكم انا عندي كود لما شخص يدوس كلك يمين علي اوبجكت يطلعله لوحه عايز اتاكد منه لو صح او غلط و الي عنده كود افضل يقولي if element and getElementType( element ) == "object" and button == "right" and state == "down" and getElementModel(element) == ايدي الاوبجكت then local x, y, z = getElementPosition(localPlayer) صح ولا خطا ؟ Link to comment
MrKAREEM Posted May 31, 2019 Share Posted May 31, 2019 function addObjectOnClick ( button, state, element ) if element and getElementType( element ) == "object" and button == "right" and state == "down" and getElementModel(element) == 'الايدي' then local x, y, z = getElementPosition(localPlayer) addEventHandler ( "onClientClick", getRootElement(), addObjectOnClick ) اعتقد راح تعمل 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