View Issue Details

IDProjectCategoryView StatusLast Update
0009860New Feature Requests[All Projects] Generalpublic2018-06-18 20:15
ReporternikitafloyAssigned Tosbx320 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Summary0009860: Method getOccupant()
Description

Sorry, I dont speak in eng well.

Code with problem:
addEventHandler("onColShapeHit", shape, function (elem)
outputChatBox(tostring(elem:getOccupant()))
if elem and elem:getType() == "vehicle" and taxiJob.veh[elem:getOccupant()] then
-- body
end
end)

With getVehicleOccupant(...) working good.

TagsNo tags attached.

Activities

sbx320

2018-06-18 20:15

administrator   ~~0026558

You need to enable oop in the meta to use :getOccupant. Also elem:getOccupant will not work for non-vehicles.

Issue History

Date Modified Username Field Change