botshara Posted February 3, 2014 Share Posted February 3, 2014 function antinj () local occupied = getVehicleOccupant( source ) if (occupied == 0) then cancelEvent() outputChatBox("Tā nav labi darīt!", player) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj ) If the seat 0 is occupied then cant jack other player your from the car. Please help fix Link to comment
xXMADEXx Posted February 3, 2014 Share Posted February 3, 2014 function antinj ( p ) local occupied = getVehicelController ( source ) if ( isElement ( occupied ) ) then cancelEvent() outputChatBox("Tā nav labi darīt!", p ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj ) Link to comment
botshara Posted February 3, 2014 Author Share Posted February 3, 2014 function antinj ( p ) local occupied = getVehicelController ( source ) if ( isElement ( occupied ) ) then cancelEvent() outputChatBox("Tā nav labi darīt!", p ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj ) nop, dont works Link to comment
Vision Posted February 3, 2014 Share Posted February 3, 2014 function antinj ( p, _, jacked ) local occupied = getVehicleOccupant ( source ) if ( occupied == jacked ) then cancelEvent() outputChatBox("Tā nav labi darīt!", p ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj ) Try this. Link to comment
botshara Posted February 3, 2014 Author Share Posted February 3, 2014 function antinj ( p, _, jacked ) local occupied = getVehicleOccupant ( source ) if ( occupied == jacked ) then cancelEvent() outputChatBox("Tā nav labi darīt!", p ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj ) Try this. Thanks man 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