L3yr

(مساعده بسيطه شباب)

Recommended Posts

 

السلام عليكم شباب

وجهتنى مشكله بسيطه

انا عامل ماركر تفتح لوحه 

انا عاوز اول ما تفتح اللوحه واضغط على  رقم 1 فى الكيبورد تختفى اللوحه وياخد منى فلوس

--الخطاء انى لما اضغط رقم 1او2 فى الكيبورد بياخد من الفلوس  من غير  ما المس الماركر

وشكرا

 

-----client
local L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0)
local  L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0)

----DX


function open(gg)--وظيفة
if isPedInVehicle ( gg ) then
addEventHandler("onClientRender", root,dx)
end--نهاية قوس الحدث
end
   addEventHandler("onClientMarkerHit",L3yr1,open)
  addEventHandler("onClientMarkerHit",L3yr2,open)
 -------------------------------------------------- 
  function ee(aa )
if aa  == "1" then
triggerServerEvent ( "open", localPlayer )
 removeEventHandler("onClientRender", root,dx) 
end
end 
addEventHandler( "onClientKey", root,ee)
-------------
function eee(aaa )
if aaa  =="2" then
triggerServerEvent ( "open2", localPlayer )
 removeEventHandler("onClientRender", root,dx)
end
end
addEventHandler( "onClientKey", root,eee) 

 

Share this post


Link to post
22 minutes ago, L3yr said:

 

السلام عليكم شباب

وجهتنى مشكله بسيطه

انا عامل ماركر تفتح لوحه 

انا عاوز اول ما تفتح اللوحه واضغط على  رقم 1 فى الكيبورد تختفى اللوحه وياخد منى فلوس

--الخطاء انى لما اضغط رقم 1او2 فى الكيبورد بياخد من الفلوس  من غير  ما المس الماركر

وشكرا

 


-----client
local L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0)
local  L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0)

----DX


function open(gg)--وظيفة
if isPedInVehicle ( gg ) then
addEventHandler("onClientRender", root,dx)
end--نهاية قوس الحدث
end
   addEventHandler("onClientMarkerHit",L3yr1,open)
  addEventHandler("onClientMarkerHit",L3yr2,open)
 -------------------------------------------------- 
  function ee(aa )
if aa  == "1" then
triggerServerEvent ( "open", localPlayer )
 removeEventHandler("onClientRender", root,dx) 
end
end 
addEventHandler( "onClientKey", root,ee)
-------------
function eee(aaa )
if aaa  =="2" then
triggerServerEvent ( "open2", localPlayer )
 removeEventHandler("onClientRender", root,dx)
end
end
addEventHandler( "onClientKey", root,eee) 

 

جرب

-----client
 L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0)
 L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0)

----DX


function open(gg)--وظيفة
if isPedInVehicle ( gg ) then
addEventHandler("onClientRender", root,dx)
end--نهاية قوس الحدث
end
   addEventHandler("onClientMarkerHit",L3yr1,open)
  addEventHandler("onClientMarkerHit",L3yr2,open)
 -------------------------------------------------- 
  function ee(aa )
if aa  == "1" then
if source == L3yr1 then
triggerServerEvent ( "open", localPlayer )
 removeEventHandler("onClientRender", root,dx) 
end
end
end 
addEventHandler( "onClientKey", root,ee)
-------------
function eee(aaa )
if aaa  =="2" then
if source == L3yr2 then
triggerServerEvent ( "open2", localPlayer )
 removeEventHandler("onClientRender", root,dx)
end
end
end
addEventHandler( "onClientKey", root,eee)

 

Edited by Source|>
  • Like 1

Share this post


Link to post

جى التجربه :D

 

49 minutes ago, Source|> said:

جرب


-----client
 L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0)
 L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0)

----DX


function open(gg)--وظيفة
if isPedInVehicle ( gg ) then
addEventHandler("onClientRender", root,dx)
end--نهاية قوس الحدث
end
   addEventHandler("onClientMarkerHit",L3yr1,open)
  addEventHandler("onClientMarkerHit",L3yr2,open)
 -------------------------------------------------- 
  function ee(aa )
if aa  == "1" then
if source == L3yr1 then
triggerServerEvent ( "open", localPlayer )
 removeEventHandler("onClientRender", root,dx) 
end
end
end 
addEventHandler( "onClientKey", root,ee)
-------------
function eee(aaa )
if aaa  =="2" then
if source == L3yr2 then
triggerServerEvent ( "open2", localPlayer )
 removeEventHandler("onClientRender", root,dx)
end
end
end
addEventHandler( "onClientKey", root,eee)

 

ما ظبط اخى

Share this post


Link to post

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.