fix for using the CMenu in nonvehicle entities (#1581)
* fix for using the CMenu in nonvehicle entities
improved version of my fix.
earlier description:
if you open the context menu while in a prop_vehicle_crane you will get a lua error like this
[ERROR] lua/includes/modules/properties.lua:114: attempt to call method 'GetThirdPersonMode' (a nil value)
1. GetHovered - lua/includes/modules/properties.lua:114
2. fn - lua/includes/modules/properties.lua:174
3. Run - addons/ulib_557962238/lua/ulib/shared/hook.lua:109
4. fn - lua/includes/modules/halo.lua:149
5. unknown - addons/ulib_557962238/lua/ulib/shared/hook.lua:109
this is because LocalPlayer():GetVehicle() return the crane you are in, so the IsValid check will return true, but since it's not an actual vehicle, calling a Vehicle function will cause a lua error.