Jump to content

Why my script isn't work on every skin?


GGeri

Recommended Posts

So, i writed a helmet script but it only work in CJ skin, why? My script is here: (next page)

 


function addHelmetOnEnter ( thePlayer, seat, jacked )
    if ( getElementModel ( source ) == 522 ) then
        addPedClothes ( thePlayer, "moto", "moto", 16 )
    end
end
addEventHandler ( "onVehicleEnter", getRootElement(), addHelmetOnEnter )

function removeHelmetOnExit ( thePlayer, seat, jacked )
    if ( getElementModel ( source ) == 522 ) then
        removePedClothes ( thePlayer, 16 )
    end
end
addEventHandler ( "onVehicleExit", getRootElement(), removeHelmetOnExit )   

Edited by GGeri
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...