# In DS server cannot use FMODUtils::GetPath()

**URL:** <https://qa.fmod.com/t/in-ds-server-cannot-use-fmodutils-getpath/19614>\
**Category:** Unreal Engine\
**Tags:** ue4\
**Created:** [December 5, 2022, 9:15am UTC](https://qa.fmod.com/t/in-ds-server-cannot-use-fmodutils-getpath/19614 "2022-12-05T09:15:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [December 9, 2022, 6:18am UTC](https://qa.fmod.com/t/in-ds-server-cannot-use-fmodutils-getpath/19614/7 "2022-12-09T06:18:08Z")

</div>

```auto
FString CLASSNAME::GetEventPath(UFMODEvent* FMODEvent)
{
    if(!IsValid(FMODEvent)){
        return "";
    }
    FMOD::Studio::EventDescription* event_description = IFMODStudioModule::Get().GetEventDescription(FMODEvent);
    FString res = FMODUtils::GetPath(event_description);
    return res;
}

```

This is the function I’m using.  
And I have another question.

> [@Can i set EventInstance Callback with Class::Function?](https://qa.fmod.com/t/can-i-set-eventinstance-callback-with-class-function/19620):
>
> I store some eventinstance when a event is played and I want remove them from TMap when the instance is destored. I found EventInstance::setCallback() function, but it cannot use like this: instance-\>setCallback(CLASS::FUNCTION, FMOD\_STUDIO\_EVENT\_CALLBACK\_TYPE); even though this CLASS::FUNCTION 's type is FMOD\_RESULT (F\_CALLBACK \*FMOD\_STUDIO\_EVENT\_CALLBACK) (FMOD\_STUDIO\_EVENT\_CALLBACK\_TYPE type, FMOD\_STUDIO\_EVENTINSTANCE \*event, void \*parameters); Is there any way…

Thank you

---

_[View the full topic](https://qa.fmod.com/t/in-ds-server-cannot-use-fmodutils-getpath/19614)._
