Jump to content

طلب اكواد لاهنتم


MR:X

Recommended Posts

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

شباب الحين سويت

لوحة للريس بس ابي اربطها بزر اصلاح والتعديل من انقلاب الموتر ! ذذ

مثال

:

  
addEventHandler("onClientGUIClick", root, 
function (button, state, absoluteX, absoluteY) 
     if source == GUIEditor_Button[1] then 
     end 
end) 

ابية يكون محول لاصلاح السيارة و التعديل للانقلاب واذا الموضوع مكلف لا لاترد واسفهني :lol:

Link to comment

جربت سويت كود مثل هذآ بس مآشتغل

كلنـت

  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  GUIEditor_Button[3] ) then 
triggerServerEvent("buyNitro",getLocalPlayer()) 
end 
 end 
) 

سيرفر

addEvent("buyNitro",true)  
addEventHandler("buyNitro",root, 
  
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 800) then 
    takePlayerMoney(source,800) 
      AddNitro = getVehicleRotation (getPedOccupiedVehicle(source))  
     local name = getPlayerName(source) 
  
        outputChatBox ( "#cccccc*** [ #FFFFFF" .. name .. " #cccccc] Has Bought Nitro By : "..price.Flip.."$   ***", getRootElement(), 0, 0, 0, true ) 
      
    else 
  
  
        outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) 
end 
  
end 
  
) 

Link to comment
جربت سويت كود مثل هذآ بس مآشتغل

كلنـت

  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  GUIEditor_Button[3] ) then 
triggerServerEvent("buyNitro",getLocalPlayer()) 
end 
 end 
) 

سيرفر

addEvent("buyNitro",true)  
addEventHandler("buyNitro",root, 
  
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 800) then 
    takePlayerMoney(source,800) 
      AddNitro = getVehicleRotation (getPedOccupiedVehicle(source))  
     local name = getPlayerName(source) 
  
        outputChatBox ( "#cccccc*** [ #FFFFFF" .. name .. " #cccccc] Has Bought Nitro By : "..price.Flip.."$   ***", getRootElement(), 0, 0, 0, true ) 
      
    else 
  
  
        outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) 
end 
  
end 
  
) 

FIx

server

addEvent("buyNitro",true)  
addEventHandler("buyNitro",root, 
  
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 800) then 
    takePlayerMoney(source,800) 
addVehicleUpgrade(getPedOccupiedVehicle(source),1010)  
     local name = getPlayerName(source) 
  
        outputChatBox ( "#cccccc*** [ #FFFFFF" .. name .. " #cccccc] Has Bought Nitro ***", getRootElement(), 0, 0, 0, true ) 
      
    else 
  
  
        outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) 
end 
  
end 
  
) 

client

  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  GUIEditor_Button[3] ) then 
triggerServerEvent("buyNitro",getLocalPlayer()) 
end 
 end 
) 

Link to comment

عشانك جديد بعطيك الكود هاذي المرة جاهز

addEvent("buyInvisible", true) 
addEventHandler("buyInvisible", getRootElement(), 
function() 
      if ( getPlayerMoney (source) >= 20000 ) then 
        takePlayerMoney(source, 20000) 
        outputChatBox("Others cant see you now.", source, 255, 255, 0, true) 
        setElementAlpha(getPedOccupiedVehicle(source),0) 
        setElementAlpha(source,0) 
        setPlayerNametagShowing(source, false) 
        setTimer( setElementAlpha, 60000, 1, source, 500, true) 
        setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) 
        setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) 
      else 
        outputChatBox("Not enough money.", source, 255, 0, 0, true) 
    end 
  end 
) 

عليك التعديل

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