156 {
157 if (!super.CanReleaseAttachment(attachment))
158 {
159 return false;
160 }
161
162 string attType = attachment.GetType();
163 switch (attType)
164 {
165 case "CarBattery":
167 {
168 return false;
169 }
170 break;
171
172 case "GlowPlug":
174 {
175 return false;
176 }
177 break;
178 }
179
180 return true;
181 }
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
override int GetCarDoorsState(string slotType)