[HELP] Can't use API.StopResource in C#

Hello everybody,

I am currently programming a script in C#, I want to use the method API.StopResource, but it tells me that does not exist. Would be kind if someone can help.

With kind regards

Are you referencing the server CitizenFX.Core?