Jump to content

طلب كود


Adham

Recommended Posts

سلام عليكم انا مسوي قريد لست وفيها العربيات

ابي لما يحدد علي عربيه ويضعط button

اسمه

Destroy تتسحب السياره الهوا ركبها

ولازم يكون داخل السياره

ولو محددش شي وضعط علي ال button لوحدو

ما تتسحب شي

Link to comment
addEventHandler ( "onClientGUIClick", resourceRoot, 
function () 
if ( source == GUIEditor.button[2] ) then 
guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 )  
if isPedInVehicle ( localPlayer ) then 
destroyElement (  getPedOccupiedVehicle(localPlayer) ) 
end 
end) 
  

فيه مشكله؟

Link to comment
addEventHandler ( "onClientGUIClick", resourceRoot, 
function () 
if ( source == GUIEditor.button[2] ) then 
guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 )  
if isPedInVehicle ( localPlayer ) then 
destroyElement (  getPedOccupiedVehicle(localPlayer) ) 
end 
end) 
  

فيه مشكله؟

addEventHandler ( "onClientGUIClick", resourceRoot, 
function () 
if ( source == GUIEditor.button[2] ) then 
if guiGridListGetSelectedItem ( grid ) ~= -1 and isPedInVehicle ( localPlayer ) then 
destroyElement (  getPedOccupiedVehicle(localPlayer) ) 
end 
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...