Jump to content

طلب كود


Recommended Posts

Posted

السلام عليكم ورحمة الله وبركاته

طلب كود ايفنت +بوتون

لما تظغط على البوتون تصير سباون في مركز الشرطة "مثلآ" و

ياخد اسلحة +

+ كاميرة ماتركس

اتمنى يكون الموضوع مفهوم

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted

كلنت ...

  
حدث = "onClientGUIClick" 
if (source== Button) then 
setElementPosition -------- عدلها انت شوف الويكي 
triggerServerEvent ------ عدله 
setCameraMatrix ------------- عدلها 
end  --------- for if 

استعمل فنكشن

getCameraMatrix

للحصول على احداثيات الماتركس

سيرفر....

  
addEvent("اسم الحدث حق الترايقر",true) 
  
function ABC ( ) 
giveWeapon ( source, 30,10000) 
end ------- for ABC 
  
addEventHandler("اسم الحدث حق الترايقر", getRootElement(), ABC) 
  

---------------------------

جانب سيرفر عدل فيه اسم الحدث حق الترايقر

وعدد الرصاص = 10000

والسلاح رقمه = 30 = رشاش

اسم الحدث حق الترايقر انت الي تحطه

والفنكشنات ماهو ضروري تعدل اسمها :roll:

----------------------------

#EDITED

تقدر زي ماقال شاويكي تحط السباون في جانب سيرفر

وتحذف

setElementPosition

Discord ID : nxFairlywell#6895

 

Posted
if ( source ==  GUIEditor.button[1] ) then 
setElementPosition ( source, 2490.1206054688, -1666.0263671875, 13.34375 ) 
 triggerServerEvent("CJ",getLocalPlayer()) 
end) 

-- ممكن تصحيح

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted

ماعرفت حاولت ~_~ ممكن مساعدة

=[ من مواضيعي ]=

____________________

NEW | Weapon_ShopV2

NEW | position_v1

Soon | Skin_SystemV2

NEW | Police_CarsV1

Soon | Police_OFFICER

Soon | WarpPanelV2.1

____________________

Posted
if ( source ==  GUIEditor.button[1] ) then 
setElementPosition ( source, 2490.1206054688, -1666.0263671875, 13.34375 ) 
 triggerServerEvent("CJ",getLocalPlayer()) 
end) 

-- ممكن تصحيح

addEventHandler("onClientGUIClick", resourceRoot, function( ) 
    if ( source ==  GUIEditor.button[1] ) then 
    setElementPosition ( localPlayer, 2490.1206054688, -1666.0263671875, 13.34375 ) 
    triggerServerEvent("CJ",localPlayer) 
    end 
end) 

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

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