Jump to content

Hot Dog Van


mint3d

Recommended Posts

Can you give me a start?

is this right?

function vehicle ( theVehicle, seat,  theplayer)  
    local id = getElementModel ( theVehicle ) 
    if id == 588 then 
     local vehicleName = getVehicleName ( theVehicle )  
local theVehicle = getPedOccupiedVehicle ( thePlayer ) 
  
    end 
end 
  
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), vehicle ) 

Link to comment

Sorry for double post but is this right?

function vehicle ( theVehicle, seat, theplayer )  
    local id = getElementModel ( theVehicle ) 
    if id == 588 then 
     local vehicleName = getVehicleName ( theVehicle ) 
     local theVehicle = getPedOccupiedVehicle ( thePlayer ) 
     if theVehicle then 
       outputChatBox ("type /hotdogs to sell food and drinks" , thePlayer )  
    end 
end 
end 
  
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), vehicle ) 
  
  
  

Link to comment
function vehicle ( theVehicle, seat ) 
    local id = getElementModel ( theVehicle ) 
    if ( id == 588 ) then 
        if ( theVehicle ) then 
            outputChatBox ( "type /hotdogs to sell food and drinks", source ) 
        end 
    end 
end 
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), vehicle ) 

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