[Lua] locking vehicle for all clients

I am having troubles with locking vehicles, I’ve been using this client-side event to lock a vehicle

AddEventHandler("vehicle:lock", function(vehicle, lockstatus)
	if not vehicle or not lockstatus then
		Citizen.Trace("You need to provide vehicle ID and new lock status!");
		return;
	end
	
	SetVehicleDoorsLocked(vehicle, lockstatus);
end);

However this will lock the vehicle only for the client that triggered the event… I tried sending the vehicle ID over to the server and propagating it back to every other client, but that didn’t work either…

what’s the proper way of managing vehicles? not only locks, but damage, dirt level etc as well

not sure if I can, but bump

found a fix?