JuniorMelo Posted June 9, 2013 Share Posted June 9, 2013 (edited) Hello I would like some help This script blocks below the vehicle hunter would like to put a message when the player attempts to get a message appearing on the vehicle * Vehicle locked for a few minutes * can help me with this ? Sorry mistakes Edited June 12, 2013 by Guest Link to comment
JuniorMelo Posted June 9, 2013 Author Share Posted June 9, 2013 outputChatBox Wanted to do with the event onVehicleStartEnter Link to comment
WASSIm. Posted June 9, 2013 Share Posted June 9, 2013 function enterVehicle() if ( source == hunter ) and (isVehicleLocked(hunter)) then outputChatBox ("* Vehicle locked for a few minutes *", enteringPlayer, 255, 0, 0) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) Link to comment
JuniorMelo Posted June 9, 2013 Author Share Posted June 9, 2013 (edited) Thanks mate helped a lot !! Edited June 12, 2013 by Guest Link to comment
Moderators IIYAMA Posted June 10, 2013 Moderators Share Posted June 10, 2013 enteringPlayer doesn't exist, it will probably send to all players/error. addEventHandler ( "onVehicleStartEnter",root, function (player)-- enterVehicle if ( source == hunter ) and isVehicleLocked(hunter) then outputChatBox ("* Vehicle locked for a few minutes *",player, 255, 0, 0) end end) 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