Jump to content

طلب كود اصلاح


baba

Recommended Posts

سلام عليكم شباب

انا ابي كود

ماركر يصلح السيارات

يعين اذا دخلت الماركر يصلح لي السيارة حقتي

ارجو التوضيح

Client

function fix() 
fixVehicle (source ) 
end 
addEventHandler ( "onClientMarkerHit", getRootElement(), fix ) 

(ناقص تعريف الماركر )

عاد انت سويه او اي احد يصلح الكود

Link to comment
marker = createMarker(x,y,z) 
  
addEventHandler("onClientMarkerHit",root,function(player) 
    if source == marker then 
        if isPedInVehicle(player) then 
            vehicle = getPedOccupiedVehicle(player) 
            fixVehicle(vehicle) 
        end 
    end 
end) 
  
  

Link to comment
marker = createMarker(x,y,z) 
  
addEventHandler("onClientMarkerHit",root,function(player) 
    if source == marker then 
        if isPedInVehicle(player) then 
            vehicle = getPedOccupiedVehicle(player) 
            fixVehicle(vehicle) 
        end 
    end 
end) 
  
  

حطيت الاحدثيات وما يصلح

Link to comment

الاكواد اللي فوق كلها خطا .. :

local marker = createMarker ( ... ) 
  
  
addEventHandler ( "onMarkerHit", resourceRoot, function ( element ) 
  if ( source == marker ) then 
    if ( getElementType ( element ) == "vehicle" ) then 
        fixVehicle ( element ) 
    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...