CJGrove Posted January 19, 2008 Share Posted January 19, 2008 I'm using this script but it add an helmet to my player when it's on a NRG but it doesn't remove it but its output is: Helm removed. function addHelmetOnEnter ( vehicle, seat, jacked ) if ( getVehicleID ( vehicle ) == 522 ) then clothes = addPlayerClothes ( source, "moto", "moto", 16 ) end end function removeHelmetOnExit ( vehicle, seat, jacked ) if ( getVehicleID ( vehicle ) == 522 ) then clothesremove = removePlayerClothes ( source, 16 ) if ( clothesremove ) then outputChatBox ( "Helm removed.", source, 0, 255, 0) else outputChatBox ( "Helm NOT removed.", source, 255, 0, 0) end end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), removeHelmetOnExit ) addEventHandler ( "onPlayerVehicleEnter", getRootElement(), addHelmetOnEnter ) 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