Jump to content

help


Apo

Recommended Posts

hi guys my code is not work please help me

if player enter the vehicle id 14 send massage for player

no warning no error

function vehenter(source,seat) 
local veh = getPedOccupiedVehicle(source) 
local vehid= tonumber(getElementData(veh, "id")) 
if seat == 0 then 
if dbid == 14 then 
    outputChatBox("welcome armin", source, 255, 0, 0) 
end 
end 
end 
addEventHandler("onVehicleEnter", getRootElement(), vehenter) 

Edited by Guest
Link to comment
  
function vehenter(p,seat) 
    local vehid = tonumber(getElementData(source, "id")) 
    if seat == 0 then 
        if dbid == 14 then 
            outputChatBox("welcome armin", p, 255, 0, 0) 
        end 
    end 
end 
addEventHandler("onVehicleEnter", getRootElement(), vehenter) 
  

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