MrCor Posted January 22, 2013 Share Posted January 22, 2013 function Enter ( theVehicle, seat, jacked ) local id = getElementModel ( theVehicle ) if id == 432 then blowVehicle ( theVehicle ) end end addEventHandler ( "onVehicleEnter", getRootElement(), Enter ) ويش الغلط ؟ Link to comment
TAPL Posted January 22, 2013 Share Posted January 22, 2013 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
MrCor Posted January 22, 2013 Author Share Posted January 22, 2013 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now