Jump to content

Help Script !


Recommended Posts

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 ? :mrgreen::fadein:

Sorry mistakes :cry:

Edited by Guest
Link to comment
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
  • Moderators

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

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...