Hello everyone.
So I have a working script for race mode which I'll put below:
function enableCameraThoughCars ()
setCameraClip (true,false)
outputChatBox ("hueta enabled",255,0,0,false)
end
addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()),enableCameraThoughCars)
This script disables the camera collision function. But to make it work, I have to restart it through the admin panel every time new round starts. It doesn't really take that much effort, but out of curiosity, how can I make it restart automatically after I change a map or game mode? Please help.