View Issue Details

IDProjectCategoryView StatusLast Update
0004687Multi Theft Auto : San AndreasServerpublic2009-08-07 20:09
ReporterMike_TraceurAssigned ToFenix1053 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version1.0 
Summary0004687: getVehicleEngineState() always return Serverside true even car engine is set On
Description

I wanted to script an source to toggle the Motor State with a key

function toggleMotor ( source )
local Vehicle = getPedOccupiedVehicle ( source )
local seat = getPedOccupiedVehicleSeat ( source )
if seat ~=0 then return end
if (Vehicle) then
local state = getVehicleEngineState ( Vehicle )
if (state == true) then
setVehicleEngineState ( Vehicle, false )--
else
setVehicleEngineState ( Vehicle, true )
end
outputDebugString(tostring(state))--ever "true"
end
end

TagsNo tags attached.

Relationships

related to 0004709 resolvedArc Source patches Patch for #4687 

Activities

Flobu

2009-07-20 01:43

updater   ~~0010044

you mean it returns true even the car engine is off not on

Mike_Traceur

2009-07-20 22:41

viewer   ~~0010050

yes

Issue History

Date Modified Username Field Change