Jump to content

<=| طلب |=>


Doffy

Recommended Posts

1 minute ago, ~#[N]exT said:

لاتنسى تسوي لوب

اوك

---Client
addEventHandler("onClientGUIClick",root,
function ()
local sel11111 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
if ( source == GUIEditor.button[1] ) then 
if sel11111 == 0 then 
triggerServerEvent("rai",localPlayer, localPlayer)
elseif sel11111 == 1 then 
triggerServerEvent("sha",localPlayer, localPlayer)
end
end
end
)

---Server
Raindance = {},

addEvent ( "rai", true )
addEventHandler ( "rai", root,
    function (   )
          local x, y, z = getElementPosition ( source )
          local _,_,r = getPedRotation ( source )
        else
	     if getPlayerMoney(source) > 500 then 
          takePlayerMoney(source,500)
          Raindance[source] = createVehicle ( 563, 124.75805,1989.57214,19.49587,r)
          warpPedIntoVehicle ( source,Raindance[source] )
		  outputChatBox("#FF0000*#FF00FFDone Successfully to Purche Raindance",source,255,255,255,true)
        end
      end
)

هذي محاولتي يخوي 

14 minutes ago, KinG_Himoo12 said:

اوك


---Client
addEventHandler("onClientGUIClick",root,
function ()
local sel11111 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
if ( source == GUIEditor.button[1] ) then 
if sel11111 == 0 then 
triggerServerEvent("rai",localPlayer, localPlayer)
elseif sel11111 == 1 then 
triggerServerEvent("sha",localPlayer, localPlayer)
end
end
end
)

---Server
Raindance = {},

addEvent ( "rai", true )
addEventHandler ( "rai", root,
    function (   )
          local x, y, z = getElementPosition ( source )
          local _,_,r = getPedRotation ( source )
        else
	     if getPlayerMoney(source) > 500 then 
          takePlayerMoney(source,500)
          Raindance[source] = createVehicle ( 563, 124.75805,1989.57214,19.49587,r)
          warpPedIntoVehicle ( source,Raindance[source] )
		  outputChatBox("#FF0000*#FF00FFDone Successfully to Purche Raindance",source,255,255,255,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...