Jump to content

تصحيح كود


MrCor

Recommended Posts

function Enter ( theVehicle, seat, jacked ) 
    local id = getElementModel ( theVehicle ) 
    if id == 432 then 
        blowVehicle ( theVehicle ) 
    end 
end 
addEventHandler ( "onVehicleEnter", getRootElement(), Enter ) 
  

ويش الغلط

؟

Link to comment

The source of this event is the vehicle that was entered.

function Enter ( thePlayer, seat, jacked ) 
    local id = getElementModel ( source ) 
    if id == 432 then 
        blowVehicle ( source ) 
    end 
end 
addEventHandler ( "onVehicleEnter", getRootElement(), Enter ) 

Link to comment
The source of this event is the vehicle that was entered.
function Enter ( thePlayer, seat, jacked ) 
    local id = getElementModel ( source ) 
    if id == 432 then 
        blowVehicle ( source ) 
    end 
end 
addEventHandler ( "onVehicleEnter", getRootElement(), Enter ) 

Thanks :thumbleft:

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