Fix veh check util
This commit is contained in:
@@ -515,6 +515,9 @@ function getPlayerLastVehicle(client) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function isVehicleObject(vehicle) {
|
function isVehicleObject(vehicle) {
|
||||||
|
if(vehicle == null || vehicle == undefined) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return (vehicle.type == ELEMENT_VEHICLE);
|
return (vehicle.type == ELEMENT_VEHICLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user