اوك
---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
)
هذي محاولتي يخوي
خلاص يخوي حليت المشكلة شكرا والله