Jump to navigation Jump to search
vehicle theVehicle, int seat, ped jacked
- theVehicle: A vehicle element representing the vehicle that was entered.
- seat: An int representing the seat in which the ped is entering.
- jacked: A player or ped element representing who has been jacked.
function sendMessage (theVehicle, seat) local vehicleName = getVehicleName (theVehicle) -- Get name of the vehicle if seat == 0 then -- if the ped is a driver outputChatBox ("Ped is now a driver of "..vehicleName, root) else -- if not outputChatBox ("Ped has entered to "..vehicleName, root) end end addEventHandler ("onPedVehicleEnter", root, sendMessage)
|Minimum server version||1.5.8-9.20740|
|Minimum client version||n/a|
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.5.8-9.20740" />