Jump to content

مساعده في تكوين الامر


Recommended Posts

                                                                                                                                                     السلام عليكم ❤️ 

 

                                                                                     انا عندي كود لما شخص يدوس كلك يمين علي اوبجكت يطلعله لوحه عايز اتاكد منه لو صح او غلط و الي عنده كود افضل يقولي

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

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