Stopping client side of a resource

is there any way to stop/start client side of a resource by code for only one player?
for example one players joins the server and I want to stop/start his client side for one of the resources

I don’t want it to affect server side

Mayebe LoadResourceFile - FiveM Natives @ Cfx.re Docs, then use luas load function to execute the script? Not sure how this will work.

its not that my friend

Have a client side script look like this:

local enabled = false

function StartScript()
    -- all threads go here with `while (true) do` replaced with `while (enabled) do`
end

-- normal functions here

if (enabled) then
    StartScript()
end

RegisterNetEvent("enableMe", function(enable)
    if (not enabled and enable) then
        StartScript()
    end

    enabled = enable
end)

This will stop all executing loops when calling the event with parameter false and restart it again when calling it with true.
And since it is an event, you can specify the clients id when calling it from server side.