Jump to content

عند الظغط ع الصوره الانتقال الى مكان


Recommended Posts

triggerServerEvent ( "***", localPlayer )

مع

'onClientGUIClick'

setElementPosition

أما عاد :lol:

وليه الترآيقر؟؟

ترا الكود كلنت,

+ باين ان صاحب الموضوع ما عرف يسويه,

addEventHandler("onClientGUIClick",root, 
function() 
if ( source == Image ) then 
setElementPosition(localPlayer,x,y,z) 
     end 
end,false) 
Link to comment
triggerServerEvent ( "***", localPlayer )

مع

'onClientGUIClick'

setElementPosition

أما عاد :lol:

وليه الترآيقر؟؟

ترا الكود كلنت,

+ باين ان صاحب الموضوع ما عرف يسويه,

addEventHandler("onClientGUIClick",root, 
function() 
if ( source == Image ) then 
setElementPosition(localPlayer,x,y,z) 
     end 
end,false) 

اذا مسوي شرط مآله دآعي الـ false!

Link to comment
يعني اذا انا مسوي شرط if ما استخدمه؟

واذا مو مسوي استخدمه,

يعني كذآ استخدمه,

addEventHandler("onClientGUIClick",Image, 
function() 
setElementPosition(localPlayer,x,y,z) 
end,false) 

اي اذا مسوي الشرط بيكون للزر بس مآهو للوحة آو الالمنت كامل <>

Link to comment

وين الخطا ي شباب

addCommandHandler("onClientGUIClick", root, 
        function() 
                local x, y, z = 0, 0, 0 
                if source == img1 then 
                        x, y, z = -2418.614746, -604.038574, 132.5625 
                elseif source == img2 then 
                        x, y, z = -4532.614746, -156.038574, 163.5625 
                elseif source == img3 then 
                        x, y, z = 1564.614746, 321.038574, -563.5625 
                end 
                fadeCamera(false) 
                setTimer( 
                        function() 
                                setElementPosition(localPlayer, x, y, z) 
                                fadeCamera(true) 
                        end, 1500, 1 
                ) 
        end 
) 

Link to comment
وين الخطا ي شباب

جرب

addCommandHandler("onClientGUIClick", root, 
 function() 
 local x, y, z = 0, 0, 0 
 if source == img1 then 
 x, y, z = -2418.614746, -604.038574, 132.5625 
 elseif source == img2 then 
 x, y, z = -4532.614746, -156.038574, 163.5625 
 elseif source == img3 then 
 x, y, z = 1564.614746, 321.038574, -563.5625 
 end 
 fadeCamera(false) 
 setTimer( 
 function() 
 setElementPosition(localPlayer, x, y, z) 
 fadeCamera(true) 
 end, 1500, 1 
 ) 
  

Link to comment

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
function() 
fadeCamera(false) 
setTimer(fadeCamera,1500,1,true) 
end 
Link to comment
addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
function() 
fadeCamera(false) 
setTimer(fadeCamera,1500,1) 
end 

Or ?

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
function() 
fadeCamera(false) 
setTimer(fadeCamera,1500,1) 
    end 
end 
) 
  

Link to comment

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
  
  
    fadeCamera (false) 
setTimer(function() guiSetVisible(Label1,true) end,1500,1) 
end) 

كذا صح ؟

8)

Link to comment
addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
function() 
fadeCamera(false) 
setTimer(fadeCamera,1500,1,true) 
end 

ما يشتغغل ي غغالي ~

Link to comment

ما يشتغغل ي غغالي ~

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
  
  
    fadeCamera (false) 
setTimer(function() guiSetVisible(Label1,true) end,1500,1) 
end) 

جرب هذا بروفسور

:roll:

Link to comment

جرب

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
fadeCamera(false) 
setTimer( function() 
fadeCamera( true ) 
end,1500,1) 
end) 

Link to comment

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
fadeCamera(false) 
setTimer(fadeCamera,1500,1,true) 
end) 
Link to comment

ما يشتغغل ي غغالي ~

addEventHandler("onClientGUIClick", root, 
function() 
if source == img1 then 
  setElementPosition(localPlayer,-2418.614746,-604.038574,132.5625) 
elseif source == img2 then 
  setElementPosition(localPlayer,-4532.614746, -156.038574, 163.5625) 
elseif source == img3 then 
  setElementPosition(localPlayer,1564.614746, 321.038574, -563.5625) 
     end 
end) 
  
  
    fadeCamera (false) 
setTimer(function() guiSetVisible(Label1,true) end,1500,1) -- وش دخل البل في السالفة 
end) 

جرب هذا بروفسور

:roll:

Copy and paste

:lol::lol::lol::lol:

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